Skip to content

Commit

Permalink
Fix to deal with case when plumed is broken
Browse files Browse the repository at this point in the history
  • Loading branch information
Gareth Aneurin Tribello authored and Gareth Aneurin Tribello committed May 10, 2024
1 parent 4e96519 commit 417353c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions PlumedToHTML/PlumedToHTML.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def get_html( inpt, name, outloc, tested, broken, plumedexe, actions=set({}) ) :
found_load = "LOAD " in inpt

# Check for shortcut file and build the modified input to read the shortcuts
if os.path.exists( name + '.json' ) :
if os.path.exists( name + '.json' ) and not any(broken) :
# Read json file containing shortcuts
with open(name + '.json') as f :
try:
Expand All @@ -199,7 +199,7 @@ def get_html( inpt, name, outloc, tested, broken, plumedexe, actions=set({}) ) :
else : final_inpt = inpt

# Check for value dictionary to use to create labels
if os.path.exists( 'values_' + name + '.json') :
if os.path.exists( 'values_' + name + '.json') and not any(broken) :
with open('values_' + name + '.json') as f :
try:
valuedict = json.load(f)
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.60',
version='0.61',
author="Gareth Tribello",
author_email="[email protected]",
description="A package for creating pretified HTML for PLUMED files",
Expand Down

0 comments on commit 417353c

Please sign in to comment.