Open homosapien-lcy opened 1 year ago
After some investigation, I found the the problem is likely due to the eval function at https://github.com/enthought/chaco/blob/main/chaco/examples/demo/advanced/scalar_image_function_inspector.py#L135. It's possible that in the current python, eval cannot handle the test function "tanh(x*2+y)cos(y)jn(0,x+y2)" at line 90.
Problem Description When running chaco/chaco/examples/demo/advanced/scalar_image_function_inspector.py, a ValueError: object of too small depth for desired array will be raised
Reproduction Steps:
Link: https://github.com/enthought/chaco/blob/main/chaco/examples/demo/advanced/scalar_image_function_inspector.py
Full Stacktrace:
OS, Python version: [MacOS, python3.11]