Skip to content

Commit 66dcf46

Browse files
committed
fix plot attributes using kwargs
1 parent 5f5832b commit 66dcf46

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ravenframework/OutStreams/PlotInterfaces/GeneralPlot.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,10 @@ def handleInput(self, xmlNode):
10151015
else:
10161016
tempDict['attributes'] = {}
10171017
for sss in subsubsub:
1018-
tempDict['attributes'][sss.tag] = sss.text.strip()
1018+
try:
1019+
tempDict['attributes'][sss.tag] = ast.literal_eval(sss.text.strip())
1020+
except (ValueError, TypeError, SyntaxError, MemoryError, RecursionError):
1021+
tempDict['attributes'][sss.tag] = sss.text.strip()
10191022
self.options[subnode.tag][subsub.tag].append(tempDict)
10201023
elif subsub.tag == 'legend':
10211024
self.options[subnode.tag][subsub.tag] = {}

0 commit comments

Comments
 (0)