From 417353c87b7410fe4515867b6bcc44f51db9b38c Mon Sep 17 00:00:00 2001 From: Gareth Aneurin Tribello Date: Fri, 10 May 2024 13:00:10 +0100 Subject: [PATCH] Fix to deal with case when plumed is broken --- PlumedToHTML/PlumedToHTML.py | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PlumedToHTML/PlumedToHTML.py b/PlumedToHTML/PlumedToHTML.py index 222cedc..b98fe21 100644 --- a/PlumedToHTML/PlumedToHTML.py +++ b/PlumedToHTML/PlumedToHTML.py @@ -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: @@ -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) diff --git a/setup.py b/setup.py index bacd398..a0a88d6 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setuptools.setup( name='PlumedToHTML', - version='0.60', + version='0.61', author="Gareth Tribello", author_email="gareth.tribello@gmail.com", description="A package for creating pretified HTML for PLUMED files",