Skip to content

Commit

Permalink
Merge pull request #131 from OpenBioSim/fix_130
Browse files Browse the repository at this point in the history
Fix issue #130
  • Loading branch information
chryswoods authored Nov 29, 2023
2 parents 72d24ca + 1bcc23e commit f00b9b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
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.

* Fix streaming of :cls:`~sire.vol.TriclinicBox` objects. This fixes issue #128.

* Please add an item to this changelog when you create your PR
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

0 comments on commit f00b9b3

Please sign in to comment.