8000 mk_prepare_receptor.py fails if running multiple processes · Issue #351 · forlilab/Meeko · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
mk_prepare_receptor.py fails if running multiple processes #351
Open
@diogomart

Description

@diogomart

Reported by @pietscio and @nbruciaferri

The error is raised inside function update_H_positions in polymer.py. This check fails:

Meeko/meeko/polymer.py

Lines 448 to 451 in 07a38f8

if len(used_h) != len(to_del):
raise RuntimeError(
f"Updated {len(used_h)} H positions but deleted {len(to_del)}"
)

This never happens if there is only one process running. But happens quite frequently if multiple processes at the OS level (not python multiprocessing) are running simultaneously. Adding print statements for debugging purposes fixed the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Is 2C02 sue actions

      0