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 #122 #123

Merged
merged 2 commits into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions corelib/src/libs/SireIO/biosimspace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ namespace SireIO
// Copy across all properties that are unique to the original molecule.
for (const auto &prop : molecule.propertyKeys())
{
if (not water.hasProperty(prop) and not prop.compare("is_non_searchable_water"))
if (not water.hasProperty(prop) and prop.compare("is_non_searchable_water") != 0)
{
edit_mol = edit_mol.setProperty(prop, molecule.property(prop)).molecule();
}
Expand Down Expand Up @@ -493,7 +493,7 @@ namespace SireIO
// Copy across all properties that are unique to the original molecule.
for (const auto &prop : molecule.propertyKeys())
{
if (not water.hasProperty(prop) and not prop.compare("is_non_searchable_water"))
if (not water.hasProperty(prop) and prop.compare("is_non_searchable_water") != 0)
{
edit_mol = edit_mol.setProperty(prop, molecule.property(prop)).molecule();
}
Expand Down
3 changes: 3 additions & 0 deletions doc/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ organisation on `GitHub <https://github.com/openbiosim/sire>`__.
`2023.5.0 <https://github.com/openbiosim/sire/compare/2023.4.0...2023.5.0>`__ - December 2023
---------------------------------------------------------------------------------------------

* Fix use of ``QString::compare`` when comparing molecular properties during
a water topology swap.

* Added a new :mod:`sire.options` module that contains new
:cls:`sire.options.Option` objects to represent configurable options.
These include documentation, and make it easier to validate and expose
Expand Down
Loading