-
Notifications
You must be signed in to change notification settings - Fork 15
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
Avoid setting all end-state properties when decoupling #253
Avoid setting all end-state properties when decoupling #253
Conversation
This addresses OpenBioSim#252. decouple() no longer sets LJ1, element1, or ambertype1, rather this is done by the _to_pert_file method of Process.Somd. The related tests of "decouple" have been removed, and direct tests on the SOMD pert files have been added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Looks good. The test failure on Python 3.11 was because of |
Thanks for the comment @lohedges. My understanding was that the error was due to formatting in _somd.py, and that the matplotlib issues were just warnings (from files that I haven't changed). Is there an error message I've missed for the matplotlib commands? I'm confused, because the error message I could see seems to show that black is unhappy with an extra line:
but I auto-format with black on saving, and running black directly on the file left it unchanged. Could a different version of black be being pulled in here? To get round this, I've just removed the line. |
Apologies, I misread the error message. You are correct, the matplotlib stuff is just a deprecation warning. The tests are currently run using black 23. Perhaps you have a different version locally. Deleting the is the correct fix. |
@lohedges Do you mind port this to the main as well, please? Thank you. |
Yes, of course. I was planning on doing that today but didn't get time. Will do it first thing tomorrow. |
Thanks |
This closes #252. BSS.Align.decouple() no longer sets LJ1, element1, or ambertype1, rather this is done by the _to_pert_file method of Process.Somd. The related tests of "decouple" have been removed, and direct tests on the SOMD pert files have been added.
devel
into this branch before issuing this pull request (e.g. by runninggit pull origin devel
): ySuggested reviewers:
@lohedges, @xiki-tempula