Skip to content

Commit

Permalink
Bug fix specifically to detail with weird keywords used for DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
Gareth Aneurin Tribello authored and Gareth Aneurin Tribello committed Nov 10, 2024
1 parent b70f221 commit e440fd7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions PlumedToHTML/PlumedFormatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ def format(self, tokensource, outfile):
else :
desc, mykey = "", value.strip().upper()
if action not in self.keyword_dict : raise Exception("action " + action + " not present in keyword dictionary")
if mykey not in self.keyword_dict[action]["syntax"] and value.strip() in self.keyword_dict[action]["syntax"] : mykey = value.strip()
if mykey in self.keyword_dict[action]["syntax"] : desc = self.keyword_dict[action]["syntax"][mykey]["description"].split('.')[0]
else :
# This deals with numbered keywords
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.92',
version='0.93',
author="Gareth Tribello",
author_email="[email protected]",
description="A package for creating pretified HTML for PLUMED files",
Expand Down
7 changes: 7 additions & 0 deletions tdata/tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,13 @@
"actions": ["MOLINFO"],
"tooltips": ["MOLINFO", "STRUCTURE"],
"badges": ["pass"]
},
{
"input": "b: DEBUG logRequestedAtoms STRIDE=2",
"index": 23,
"actions": ["DEBUG"],
"tooltips": ["DEBUG", "logRequestedAtoms", "STRIDE"],
"badges": ["pass"]
}
]
}

0 comments on commit e440fd7

Please sign in to comment.