Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] prepareFEP.py calls BSS.IO.saveMolecules with an missing match_water parameter #291

Closed
nigel-palmer-cresset opened this issue May 16, 2024 · 2 comments · Fixed by #292
Assignees
Labels
bug Something isn't working cresset Related to work with Cresset

Comments

@nigel-palmer-cresset
Copy link

prepareFEP.py has the following code

BSS.IO.saveMolecules(
    "merged_at_lam0.pdb",
    merged,
    "PDB",
    {"coordinates": "coordinates0", "bond": "bond0", "element": "element0"},
)

This fails due to biosimspace/python/BioSimSpace/IO/_io.py::saveMolecules requiring an match_water parameter.

Changing it to the following fixes the problem.

BSS.IO.saveMolecules(
    "merged_at_lam0.pdb",
    merged,
    "PDB",
    property_map={"coordinates": "coordinates0", "bond": "bond0", "element": "element0"},
)

Thanks

@nigel-palmer-cresset nigel-palmer-cresset added the bug Something isn't working label May 16, 2024
@lohedges
Copy link
Contributor

Thanks for reporting. This is actually because prepareFEP is passing keyword arguments, e.g. the property_map as positional arguments. There is no need to pass match_water.

I'll update the script tomorrow.

@lohedges
Copy link
Contributor

Sorry, couldn't see your code snippet on my phone. That's the correct solution, i.e. passing the property map as a kwarg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cresset Related to work with Cresset
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants