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

Bugfix rename equil files #36

Merged
merged 2 commits into from
Feb 23, 2025
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
6 changes: 4 additions & 2 deletions a3fe/run/leg.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,9 +645,11 @@ def run_ensemble_equilibration(
)

# Give the output files unique names
for i, outdir in enumerate(outdirs_to_run):
equil_numbers = [int(outdir.split("_")[-1]) for outdir in outdirs_to_run]
for equil_number, outdir in zip(equil_numbers, outdirs_to_run):
_subprocess.run(
["mv", f"{outdir}/somd.rst7", f"{outdir}/somd_{i + 1}.rst7"], check=True
["mv", f"{outdir}/somd.rst7", f"{outdir}/somd_{equil_number}.rst7"],
check=True,
)

# Load the system and mark the ligand to be decoupled
Expand Down
2 changes: 1 addition & 1 deletion a3fe/run/system_prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ def run_ensemble_equilibration(

# Run - assuming that this will be in the appropriate ensemble equilibration directory
print(
f"Running SOMD ensemble equilibration simulation for {cfg.ensemble_equilibration_time} ps"
f"Running ensemble equilibration simulation with GROMACS for {cfg.ensemble_equilibration_time} ps"
)
if leg_type == _LegType.BOUND:
work_dir = output_dir
Expand Down
4 changes: 4 additions & 0 deletions docs/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Change Log
===============

0.3.2
====================
- Fix bug which caused somd.rst7 files in the ensemble equilibration directories to be incorrectly numbered in some cases.

0.3.1
====================
- Modified the SimulationRunnerIterator to ensure that the state of sub-simulation runners is saved before they are torn down. This means that setting the equilibration time at the CalcSet level will now work as expected (previously the state of the calculations was not saved, causing the analysis to fail).
Expand Down