Minor bugfix

This commit is contained in:
Kevin Wu
2023-03-08 21:25:49 -08:00
parent dd7560611a
commit 5de09e00e4

View File

@@ -26,6 +26,7 @@ def run_gromacs_in_docker(fname: str, out_dir: str):
assert os.path.isfile(fname), f"Input file {fname} not found"
assert shutil.which("nvidia-docker")
out_dir = os.path.abspath(out_dir)
fname = os.path.abspath(fname)
with tempfile.TemporaryDirectory() as tmpdir:
os.chdir(tmpdir)
# Copy the file into the directory