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

Fix issue #130 #131

Merged
merged 2 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions doc/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ organisation on `GitHub <https://github.com/openbiosim/sire>`__.
to keep existing behaviour, but we would recommend setting this to ``True``
and would like to change the default in the future.

* Fix validation of ``perturbable_constraint`` dynamics option when the string
includes hyphens. This fixes issue #130.

* Please add an item to this changelog when you create your PR

`2023.4.1 <https://github.com/openbiosim/sire/compare/2023.4.0...2023.4.1>`__ - October 2023
Expand Down
6 changes: 3 additions & 3 deletions wrapper/Convert/SireOpenMM/openmmmolecule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,19 +130,19 @@ OpenMMMolecule::OpenMMMolecule(const Molecule &mol,
{
perturbable_constraint_type = CONSTRAIN_NONE;
}
else if (c == "h-bonds")
else if (c == "h-bonds" or c == "h_bonds")
{
perturbable_constraint_type = CONSTRAIN_HBONDS;
}
else if (c == "bonds")
{
perturbable_constraint_type = CONSTRAIN_BONDS;
}
else if (c == "h-bonds-h-angles")
else if (c == "h-bonds-h-angles" or c == "h_bonds_h_angles")
{
perturbable_constraint_type = CONSTRAIN_HBONDS | CONSTRAIN_HANGLES;
}
else if (c == "bonds-h-angles")
else if (c == "bonds-h-angles" or c == "bonds_h_angles")
{
perturbable_constraint_type = CONSTRAIN_BONDS | CONSTRAIN_HANGLES;
}
Expand Down
Loading