Removed backups from energy reader

This commit is contained in:
sebastiankloth 2022-04-27 15:38:49 +02:00
parent 82c9b9ee36
commit cefdcf7e21

View File

@ -197,7 +197,9 @@ def energy_reader(file, energies=None):
directory = file.rsplit("/", 1)[0]
ps = subprocess.Popen(("echo", *energies), stdout=subprocess.PIPE)
try:
subprocess.run(("gmx", "energy", "-f", file, "-o", f"{directory}/tmp.xvg", "-quiet"), stdin=ps.stdout)
subprocess.run(("gmx", "energy", "-f", file, "-o",
f"{directory}/tmp.xvg", "-quiet", "-nobackup"),
stdin=ps.stdout)
except FileNotFoundError:
print("No GROMACS found!")
ps.wait()