-
Notifications
You must be signed in to change notification settings - Fork 48
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
change posres_fc format #659
base: master
Are you sure you want to change the base?
Conversation
- write global #ifndef at top of itps - change value of posres_fc to global - add some tests for the posres processor - add documentation page for things vermouth writes that are applied via gromacs preprocessor
the tests are failing because the itp reader can't handle
so that needs to be implemented somewhere in the file parser if we want to solve this edit: I think I understand why, in that the file reader thinks the |
I think your analysis is spot on. Maybe you can even ignore the fact that its in an ifdef/ifndef block? Implementing that in a generic way gets quite gnarly I think. |
That seems to work nicely now, and I've double checked that output files run as expected. Have had to hack the tests slightly to ensure they still work which is not ideal, but if we're going to ignore Also, I think the docs page was a good idea, but not sure if it's actually in the right place at the moment so happy to move it wherever. Didn't feel like it sat right alongside the other tutorials though? |
try: | ||
p2 = list(map(float, interaction2.parameters)) | ||
except ValueError: | ||
if interaction2.parameters[1] == 'POSRES_FC': | ||
p2 = list(map(float, ['1', '1000', '1000', '1000'])) |
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.
Why? Add a comment please
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.
Very nice. Just a few small comments
elif line.startswith("#define"): | ||
pass |
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.
Add a comment why pass
, rather than setting the molecule meta
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.
do you mean the current_meta
?
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.
Probably, yes
nb on the docs test failing, looks like the problems are related to sphinx -> 8.2.0. For the |
Could you try to figure out the failing docs build? You can test it locally before you push it. You can find the exact sphinx invocation in the CI config file (https://github.com/marrink-lab/vermouth-martinize/blob/master/.github/workflows/run_tests.yml#L117). I don't have time available to have a look today :( |
as discussed in #639