Skip to content

Commit

Permalink
Merge pull request #3 from Kitaolab/ver1.1.1
Browse files Browse the repository at this point in the history
Ver1.1.1
  • Loading branch information
kh01734 authored Sep 16, 2024
2 parents ed3120f + eb596b0 commit 1e48b7b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pacs/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.1.0"
__version__ = "1.1.1"
9 changes: 6 additions & 3 deletions pacs/mdrun/exporter/gromacs.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,11 @@ def export_by_gmx(

# First convert trj with -pbc option, and then extract with -b, -e options
# If we do the both at the same time, the -pbc nojump does not work properly
# Output the prd_image_prev_cycle to the next cycle to avoid overwrapping.
cmd_trjconv = f"echo {args_to_trjconv} \
| {settings.cmd_gmx} trjconv \
-f {from_dir}/prd{extension} \
-o {from_dir}/prd_image{extension} \
-o {out_dir}/prd_image_prev_cycle{extension} \
-s {from_dir}/prd.tpr \
-n {settings.index_file} \
{pbc_option} \
Expand All @@ -132,7 +133,7 @@ def export_by_gmx(

cmd_extract = f"echo System \
| {settings.cmd_gmx} trjconv \
-f {from_dir}/prd_image{extension} \
-f {out_dir}/prd_image_prev_cycle{extension} \
-o {out_dir}/input{settings.structure_extension} \
-s {from_dir}/prd.tpr \
-b {results[replica_rank].frame} \
Expand All @@ -148,7 +149,9 @@ def export_by_gmx(
exit(1)

# remove the intermediate trajectory
res_rm = subprocess.run(f"rm {from_dir}/prd_image{extension}", shell=True)
res_rm = subprocess.run(
f"rm {out_dir}/prd_image_prev_cycle{extension}", shell=True
)
if res_rm.returncode != 0:
LOGGER.error("error occurred at rm command")
exit(1)
Expand Down

0 comments on commit 1e48b7b

Please sign in to comment.