Closed alebaran closed 4 years ago
It would also help to see the space, which contains the cell. Thank you!
And on more thing :-) It would be extremely helpful to see the code in the line, which broke.
v0.6.0 should meet this request. https://modelx.readthedocs.io/en/latest/releases/relnotes_v0_6_0.html
Thank you for this development. Unfortunately it breaks in case function is used within the cell:
from modelx import *
m, s = new_model(), new_space()
@defcells
def a(t):
if t > 0:
return sum([a(t - i) for i in range(1, 2)])
else:
raise ValueError()
a(1)
When for some reason the value of the cell can't be evaluated, the error log contains only function name, not arguments, with which it was called. E.g.:
It would really be helpful for troubleshooting to see the arguments with which function
CF_discounted_df
was called.