Skip to content

Commit e440fd7

Browse files
Gareth Aneurin TribelloGareth Aneurin Tribello
authored andcommitted
Bug fix specifically to detail with weird keywords used for DEBUG
1 parent b70f221 commit e440fd7

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

PlumedToHTML/PlumedFormatter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ def format(self, tokensource, outfile):
215215
else :
216216
desc, mykey = "", value.strip().upper()
217217
if action not in self.keyword_dict : raise Exception("action " + action + " not present in keyword dictionary")
218+
if mykey not in self.keyword_dict[action]["syntax"] and value.strip() in self.keyword_dict[action]["syntax"] : mykey = value.strip()
218219
if mykey in self.keyword_dict[action]["syntax"] : desc = self.keyword_dict[action]["syntax"][mykey]["description"].split('.')[0]
219220
else :
220221
# This deals with numbered keywords

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setuptools.setup(
88
name='PlumedToHTML',
9-
version='0.92',
9+
version='0.93',
1010
author="Gareth Tribello",
1111
author_email="[email protected]",
1212
description="A package for creating pretified HTML for PLUMED files",

tdata/tests.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,13 @@
150150
"actions": ["MOLINFO"],
151151
"tooltips": ["MOLINFO", "STRUCTURE"],
152152
"badges": ["pass"]
153+
},
154+
{
155+
"input": "b: DEBUG logRequestedAtoms STRIDE=2",
156+
"index": 23,
157+
"actions": ["DEBUG"],
158+
"tooltips": ["DEBUG", "logRequestedAtoms", "STRIDE"],
159+
"badges": ["pass"]
153160
}
154161
]
155162
}

0 commit comments

Comments
 (0)