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
Currently, if something goes wrong while evaluating a numexpr expression, the error message is not very helpful:
File "/mnt/c/Workspace/fast-carpenter/fast_carpenter/expressions.py", line 115, in evaluate
result = numexpr.evaluate(cleaned_expression, local_dict=adaptor)
File "/software/miniconda/envs/hep_py/lib/python3.7/site-packages/numexpr/necompiler.py", line 822, in evaluate
zip(names, arguments)]
File "/software/miniconda/envs/hep_py/lib/python3.7/site-packages/numexpr/necompiler.py", line 821, in <listcomp>
signature = [(name, getType(arg)) for (name, arg) in
File "/software/miniconda/envs/hep_py/lib/python3.7/site-packages/numexpr/necompiler.py", line 703, in getType
raise ValueError("unknown type %s" % a.dtype.name)
ValueError: unknown type object
Instead, it would be useful to catch the exception in
Currently, if something goes wrong while evaluating a numexpr expression, the error message is not very helpful:
Instead, it would be useful to catch the exception in
prepend the cleaned_expression to the exception message and re-raise the exception.
E.g.
The text was updated successfully, but these errors were encountered: