Skip to content

Commit

Permalink
Added command to remove all bck files generated by plumed
Browse files Browse the repository at this point in the history
  • Loading branch information
Gareth Aneurin Tribello committed Nov 11, 2024
1 parent e440fd7 commit 50004b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions PlumedToHTML/PlumedToHTML.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import pathlib
import zipfile
import warnings
import glob
from lxml import etree
from io import StringIO
from bs4 import BeautifulSoup
Expand Down Expand Up @@ -104,6 +105,7 @@ def test_plumed( executible, filename, header=[], printjson=False, jsondir="./"
with open(outfile,"w") as stdout:
with open(errtxtfile,"w") as stderr:
with cd(run_folder):
for bkpf in glob.glob("bck.*") : os.remove(bkpf)
plumed_out = subprocess.run(cmd, text=True, stdout=stdout, stderr=stderr )
# write header and preamble to errfile
with open(errfile,"w") as stderr:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setuptools.setup(
name='PlumedToHTML',
version='0.93',
version='0.94',
author="Gareth Tribello",
author_email="[email protected]",
description="A package for creating pretified HTML for PLUMED files",
Expand Down

0 comments on commit 50004b1

Please sign in to comment.