Skip to content

Commit

Permalink
Fix equilbration settings
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahbaumann committed Nov 20, 2023
1 parent e160600 commit 24d5a2f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
3 changes: 2 additions & 1 deletion openfe/protocols/openmm_md/plain_md_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def _default_settings(cls):
engine_settings=OpenMMEngineSettings(),
integrator_settings=IntegratorSettings(),
simulation_settings=SimulationSettingsMD(
equilibration_length_nvt=0.1 * unit.nanosecond,
equilibration_length=1.0 * unit.nanosecond,
production_length=5.0 * unit.nanosecond,
),
Expand Down Expand Up @@ -288,7 +289,7 @@ def run(self, *, dry=False, verbose=True,
)
equil_steps_nvt, equil_steps_npt, prod_steps = settings_validation.get_simsteps(
equil_length_nvt=sim_settings.equilibration_length_nvt,
equil_length_npt=sim_settings.equilibration_length_npt,
equil_length=sim_settings.equilibration_length,
prod_length=sim_settings.production_length,
timestep=timestep, mc_steps=mc_steps
)
Expand Down
10 changes: 1 addition & 9 deletions openfe/protocols/openmm_utils/omm_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,15 +386,7 @@ class Config:
"""
Length of the equilibration phase in the NVT ensemble in units of time.
The total number of steps from this equilibration length
(i.e. ``equilibration_length`` / :class:`IntegratorSettings.timestep`)
must be a multiple of the value defined for
:class:`IntegratorSettings.n_steps`.
"""
equilibration_length_npt: unit.Quantity
"""
Length of the equilibration phase in the NPT ensemble in units of time.
The total number of steps from this equilibration length
(i.e. ``equilibration_length`` / :class:`IntegratorSettings.timestep`)
(i.e. ``equilibration_length_nvt`` / :class:`IntegratorSettings.timestep`)
must be a multiple of the value defined for
:class:`IntegratorSettings.n_steps`.
"""
Expand Down
5 changes: 1 addition & 4 deletions openfe/tests/protocols/test_openmm_plain_md_protocols.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,4 @@ def test_gather(solvent_protocol_dag, tmpdir):

res = prot.gather([dagres])

assert isinstance(res, PlainMDProtocolResult)

def test_ffcache_none():
dryrun = pu.run(dry=True, shared_basepath=tmp)
assert isinstance(res, PlainMDProtocolResult)

0 comments on commit 24d5a2f

Please sign in to comment.