sst-elements
sst-elements copied to clipboard
Bad code in pymerlin-base
Hi!
This line https://github.com/sstsimulator/sst-elements/blob/master/src/sst/elements/merlin/pymerlin-base.py#L276 refers to undeclared "value" (copypasted piece of code from setattr?) which leads to Traceback (most recent call last): ... File "pymerlin-base.py", line 276, in getattr NameError: name 'value' is not defined. Did you mean: 'False'? FATAL: SSTPythonModel: Execution of model construction function failed.
Triggered by the following high-level print() attempt:
I am not very familiar with internals of SST but this does look like a bug.
Thanks. I'll take a look and put in a patch.
@feldergast Did you patch this?