$ python examples/demo/advanced/scalar_image_function_inspector_old.py
2021-04-02 15:07:32.391 Python[96648:17304441] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to (null)
Traceback (most recent call last):
File "/Users/aayres/.edm/envs/chaco-test-3.6-pyqt5/lib/python3.6/site-packages/enable/qt4/base_window.py", line 243, in paintEvent
self.handler.paintEvent(event)
File "/Users/aayres/.edm/envs/chaco-test-3.6-pyqt5/lib/python3.6/site-packages/enable/qt4/base_window.py", line 78, in paintEvent
self._enable_window._paint(event)
File "/Users/aayres/.edm/envs/chaco-test-3.6-pyqt5/lib/python3.6/site-packages/enable/abstract_window.py", line 506, in _paint
self.component.draw(gc, view_bounds=(0, 0, size[0], size[1]))
File "/Users/aayres/.edm/envs/chaco-test-3.6-pyqt5/lib/python3.6/site-packages/enable/component.py", line 432, in draw
self._draw(gc, view_bounds, mode)
File "/Users/aayres/.edm/envs/chaco-test-3.6-pyqt5/lib/python3.6/site-packages/enable/component.py", line 813, in _draw
self._dispatch_draw(layer, gc, view_bounds, mode)
File "/Users/aayres/.edm/envs/chaco-test-3.6-pyqt5/lib/python3.6/site-packages/enable/container.py", line 280, in _dispatch_draw
component._dispatch_draw(layer, gc, new_bounds, mode)
File "/Users/aayres/.edm/envs/chaco-test-3.6-pyqt5/lib/python3.6/site-packages/enable/container.py", line 278, in _dispatch_draw
component._draw(gc, new_bounds, mode)
File "/Users/aayres/.edm/envs/chaco-test-3.6-pyqt5/lib/python3.6/site-packages/enable/component.py", line 803, in _draw
self._dispatch_draw(layer, bb, view_bounds, mode)
File "/Users/aayres/.edm/envs/chaco-test-3.6-pyqt5/lib/python3.6/site-packages/enable/container.py", line 280, in _dispatch_draw
component._dispatch_draw(layer, gc, new_bounds, mode)
File "/Users/aayres/.edm/envs/chaco-test-3.6-pyqt5/lib/python3.6/site-packages/enable/component.py", line 831, in _dispatch_draw
handler(gc, view_bounds, mode)
File "/Users/aayres/Desktop/chaco/chaco/base_2d_plot.py", line 200, in _draw_image
self._render(gc)
File "/Users/aayres/Desktop/chaco/chaco/contour_poly_plot.py", line 46, in _render
self._update_polys()
File "/Users/aayres/Desktop/chaco/chaco/contour_poly_plot.py", line 86, in _update_polys
c = Cntr(xg, yg, data, ~mask)
ValueError: Arguments x, y, z, mask (if present) must have the same dimensions.
Abort trap: 6
Problem Description
the example
examples/demo/advanced/scalar_image_function_inspector_old.pyis currently broken (it fails immediately when you try to run it). Additionally, there existsexamples/demo/advanced/scalar_image_function_inspector.pythat appears to have the same goal which works fine. We should either fix the old example or delete it entirely. I am unclear why both have been kept.Reproduction Steps:
Expected behavior:
Example should run or not exist
This is the current failure I see:
Details