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 #299 #300

Merged
merged 2 commits into from
Jun 17, 2024
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
2 changes: 1 addition & 1 deletion python/BioSimSpace/IO/_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ def saveMolecules(
continue

# Add the file format to the property map.
_property_map["fileformat"] = _SireBase.wrap(format)
_property_map["fileformat"] = format

# Warn the user if any molecules are parameterised with a force field
# that uses geometric combining rules. While we can write this to file
Expand Down
42 changes: 28 additions & 14 deletions python/BioSimSpace/Parameters/_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,10 @@ def parameterise(
Returns
-------

molecule : :class:`Molecule <BioSimSpace._SireWrappers.Molecule>`
The parameterised molecule.
process : :class:`Process <BioSimSpace.Parameters._process.Process>`
A process to parameterise the molecule in the background. Call the
.getMolecule() method on the returned process to block until the
parameterisation is complete and get the parameterised molecule.
"""

if not isinstance(forcefield, str):
Expand Down Expand Up @@ -208,8 +210,10 @@ def _parameterise_amber_protein(
Returns
-------

molecule : :class:`Molecule <BioSimSpace._SireWrappers.Molecule>`
The parameterised molecule.
process : :class:`Process <BioSimSpace.Parameters._process.Process>`
A process to parameterise the molecule in the background. Call the
.getMolecule() method on the returned process to block until the
parameterisation is complete and get the parameterised molecule.
"""

if not isinstance(forcefield, str):
Expand Down Expand Up @@ -314,8 +318,10 @@ def gaff(
Returns
-------

molecule : :class:`Molecule <BioSimSpace._SireWrappers.Molecule>`
The parameterised molecule.
process : :class:`Process <BioSimSpace.Parameters._process.Process>`
A process to parameterise the molecule in the background. Call the
.getMolecule() method on the returned process to block until the
parameterisation is complete and get the parameterised molecule.
"""

if _amber_home is None:
Expand Down Expand Up @@ -407,8 +413,10 @@ def gaff2(
Returns
-------

molecule : :class:`Molecule <BioSimSpace._SireWrappers.Molecule>`
The parameterised molecule.
process : :class:`Process <BioSimSpace.Parameters._process.Process>`
A process to parameterise the molecule in the background. Call the
.getMolecule() method on the returned process to block until the
parameterisation is complete and get the parameterised molecule.
"""

if _amber_home is None:
Expand Down Expand Up @@ -506,8 +514,10 @@ def _parameterise_openff(
Returns
-------

molecule : :class:`Molecule <BioSimSpace._SireWrappers.Molecule>`
The parameterised molecule.
process : :class:`Process <BioSimSpace.Parameters._process.Process>`
A process to parameterise the molecule in the background. Call the
.getMolecule() method on the returned process to block until the
parameterisation is complete and get the parameterised molecule.
"""

from sire.legacy.Base import findExe as _findExe
Expand Down Expand Up @@ -1068,8 +1078,10 @@ def _function(
Returns
-------

molecule : :class:`Molecule <BioSimSpace._SireWrappers.Molecule>`
The parameterised molecule.
process : :class:`Process <BioSimSpace.Parameters._process.Process>`
A process to parameterise the molecule in the background. Call the
.getMolecule() method on the returned process to block until the
parameterisation is complete and get the parameterised molecule.
"""
return _parameterise_amber_protein(
name,
Expand Down Expand Up @@ -1133,8 +1145,10 @@ def _function(
Returns
-------

molecule : :class:`Molecule <BioSimSpace._SireWrappers.Molecule>`
The parameterised molecule.
process : :class:`Process <BioSimSpace.Parameters._process.Process>`
A process to parameterise the molecule in the background. Call the
.getMolecule() method on the returned process to block until the
parameterisation is complete and get the parameterised molecule.
"""
return _parameterise_openff(
name,
Expand Down
2 changes: 1 addition & 1 deletion python/BioSimSpace/Sandpit/Exscientia/IO/_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ def saveMolecules(
continue

# Add the file format to the property map.
_property_map["fileformat"] = _SireBase.wrap(format)
_property_map["fileformat"] = format

# Warn the user if any molecules are parameterised with a force field
# that uses geometric combining rules. While we can write this to file
Expand Down
42 changes: 28 additions & 14 deletions python/BioSimSpace/Sandpit/Exscientia/Parameters/_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,10 @@ def parameterise(
Returns
-------

molecule : :class:`Molecule <BioSimSpace._SireWrappers.Molecule>`
The parameterised molecule.
process : :class:`Process <BioSimSpace.Parameters._process.Process>`
A process to parameterise the molecule in the background. Call the
.getMolecule() method on the returned process to block until the
parameterisation is complete and get the parameterised molecule.
"""

if not isinstance(forcefield, str):
Expand Down Expand Up @@ -208,8 +210,10 @@ def _parameterise_amber_protein(
Returns
-------

molecule : :class:`Molecule <BioSimSpace._SireWrappers.Molecule>`
The parameterised molecule.
process : :class:`Process <BioSimSpace.Parameters._process.Process>`
A process to parameterise the molecule in the background. Call the
.getMolecule() method on the returned process to block until the
parameterisation is complete and get the parameterised molecule.
"""

if not isinstance(forcefield, str):
Expand Down Expand Up @@ -314,8 +318,10 @@ def gaff(
Returns
-------

molecule : :class:`Molecule <BioSimSpace._SireWrappers.Molecule>`
The parameterised molecule.
process : :class:`Process <BioSimSpace.Parameters._process.Process>`
A process to parameterise the molecule in the background. Call the
.getMolecule() method on the returned process to block until the
parameterisation is complete and get the parameterised molecule.
"""

if _amber_home is None:
Expand Down Expand Up @@ -407,8 +413,10 @@ def gaff2(
Returns
-------

molecule : :class:`Molecule <BioSimSpace._SireWrappers.Molecule>`
The parameterised molecule.
process : :class:`Process <BioSimSpace.Parameters._process.Process>`
A process to parameterise the molecule in the background. Call the
.getMolecule() method on the returned process to block until the
parameterisation is complete and get the parameterised molecule.
"""

if _amber_home is None:
Expand Down Expand Up @@ -506,8 +514,10 @@ def _parameterise_openff(
Returns
-------

molecule : :class:`Molecule <BioSimSpace._SireWrappers.Molecule>`
The parameterised molecule.
process : :class:`Process <BioSimSpace.Parameters._process.Process>`
A process to parameterise the molecule in the background. Call the
.getMolecule() method on the returned process to block until the
parameterisation is complete and get the parameterised molecule.
"""

from sire.legacy.Base import findExe as _findExe
Expand Down Expand Up @@ -1068,8 +1078,10 @@ def _function(
Returns
-------

molecule : :class:`Molecule <BioSimSpace._SireWrappers.Molecule>`
The parameterised molecule.
process : :class:`Process <BioSimSpace.Parameters._process.Process>`
A process to parameterise the molecule in the background. Call the
.getMolecule() method on the returned process to block until the
parameterisation is complete and get the parameterised molecule.
"""
return _parameterise_amber_protein(
name,
Expand Down Expand Up @@ -1133,8 +1145,10 @@ def _function(
Returns
-------

molecule : :class:`Molecule <BioSimSpace._SireWrappers.Molecule>`
The parameterised molecule.
process : :class:`Process <BioSimSpace.Parameters._process.Process>`
A process to parameterise the molecule in the background. Call the
.getMolecule() method on the returned process to block until the
parameterisation is complete and get the parameterised molecule.
"""
return _parameterise_openff(
name,
Expand Down