You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in e.g. a runscripts, esm_runscripts will crash with
...
File "/home/shkifmsw/.local/lib/python3.7/site-packages/esm_parser/esm_parser.py", line 1818, in find_variable
var_result = do_math_in_entry(tree, var_result, full_config)
File "/home/shkifmsw/.local/lib/python3.7/site-packages/esm_parser/esm_parser.py", line 2208, in do_math_in_entry
result = eval(math)
File "<string>", line 1
3350-01-01 - 450seconds
^
SyntaxError: invalid token
glogin4:~/esm/esm_tools/runscripts/foci $
After narrowing done the problem to "I think the variable name must end on date, but why the hell, and where is that defined", I figured out that this is indeed the case:
If you change (example)
to
in e.g. a runscripts, esm_runscripts will crash with
After narrowing done the problem to "I think the variable name must end on date, but why the hell, and where is that defined", I figured out that this is indeed the case:
esm_parser/esm_parser/esm_parser.py
Lines 2216 to 2227 in 206899a
Is there a reasonable explanation for this? And if yes, we must document it and highlight it in blinking red in the documentation :-)
The text was updated successfully, but these errors were encountered: