Skip to content

Commit

Permalink
Merge pull request #42 from OpenBioSim/fix_backport
Browse files Browse the repository at this point in the history
Backport fixes in to main
  • Loading branch information
lohedges authored Apr 18, 2023
2 parents 083dc3e + d29bfa2 commit 52d3a82
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions python/BioSimSpace/Protocol/_equilibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
from ._protocol import Protocol as _Protocol


class Equilibration(_PositionRestraintMixin):
class Equilibration(_Protocol, _PositionRestraintMixin):
"""A class for storing equilibration protocols."""

def __init__(
Expand Down Expand Up @@ -168,7 +168,7 @@ def _get_parm(self):
f"pressure={self._pressure}, "
f"report_interval={self._report_interval}, "
f"restart_interval={self._restart_interval}, "
f"restart={self._restart}, " + _PositionRestraintMixin._get_parm(self)
+ _PositionRestraintMixin._get_parm(self)
)

def __str__(self):
Expand Down
4 changes: 1 addition & 3 deletions python/BioSimSpace/Protocol/_free_energy_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@

from .. import Types as _Types

from ._protocol import Protocol as _Protocol


class _FreeEnergyMixin(_Protocol):
class _FreeEnergyMixin:
"""A mixin for alchemical free energy protocols."""

def __init__(
Expand Down
2 changes: 1 addition & 1 deletion python/BioSimSpace/Protocol/_minimisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from ._protocol import Protocol as _Protocol


class Minimisation(_PositionRestraintMixin):
class Minimisation(_Protocol, _PositionRestraintMixin):
"""A class for storing minimisation protocols."""

def __init__(
Expand Down
4 changes: 1 addition & 3 deletions python/BioSimSpace/Protocol/_position_restraint_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@
from .. import Types as _Types
from .. import Units as _Units

from ._protocol import Protocol as _Protocol


class _PositionRestraintMixin(_Protocol):
class _PositionRestraintMixin:
"""A mixin for applying position restraints to other protocols."""

# Supported restraint keywords.
Expand Down
2 changes: 1 addition & 1 deletion python/BioSimSpace/Protocol/_production.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
from ._protocol import Protocol as _Protocol


class Production(_PositionRestraintMixin):
class Production(_Protocol, _PositionRestraintMixin):
"""A class for storing production protocols."""

def __init__(
Expand Down
1 change: 1 addition & 0 deletions test/IO/test_tuple.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import BioSimSpace as BSS


def test_tuple():
"""Check that we can read from a tuple of files."""
BSS.IO.readMolecules(("test/input/ala.crd", "test/input/ala.top"))
1 change: 1 addition & 0 deletions test/Sandpit/Exscientia/IO/test_tuple.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import BioSimSpace.Sandpit.Exscientia as BSS


def test_tuple():
"""Check that we can read from a tuple of files."""
BSS.IO.readMolecules(("test/input/ala.crd", "test/input/ala.top"))

0 comments on commit 52d3a82

Please sign in to comment.