Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

advanced/scalar_image_function_inspector_old.py Fails to run #558

Closed
aaronayres35 opened this issue Jan 8, 2021 · 2 comments
Closed

advanced/scalar_image_function_inspector_old.py Fails to run #558

aaronayres35 opened this issue Jan 8, 2021 · 2 comments
Labels
component: demos Issues related to the examples/demos.

Comments

@aaronayres35
Copy link
Contributor

When attempting to run the example https://github.com/enthought/chaco/blob/master/examples/demo/advanced/scalar_image_function_inspector_old.py
The following error occurs:

Traceback (most recent call last):
  File "/Users/aayres/.edm/envs/chaco-test-3.6-pyside2/lib/python3.6/site-packages/enable/qt4/base_window.py", line 213, in paintEvent
    self.handler.paintEvent(event)
  File "/Users/aayres/.edm/envs/chaco-test-3.6-pyside2/lib/python3.6/site-packages/enable/qt4/base_window.py", line 65, in paintEvent
    self._enable_window._paint(event)
  File "/Users/aayres/.edm/envs/chaco-test-3.6-pyside2/lib/python3.6/site-packages/enable/abstract_window.py", line 471, in _paint
    self.component.draw(gc, view_bounds=(0, 0, size[0], size[1]))
  File "/Users/aayres/.edm/envs/chaco-test-3.6-pyside2/lib/python3.6/site-packages/enable/component.py", line 427, in draw
    self._draw(gc, view_bounds, mode)
  File "/Users/aayres/.edm/envs/chaco-test-3.6-pyside2/lib/python3.6/site-packages/enable/component.py", line 779, in _draw
    self._dispatch_draw(layer, gc, view_bounds, mode)
  File "/Users/aayres/.edm/envs/chaco-test-3.6-pyside2/lib/python3.6/site-packages/enable/container.py", line 273, in _dispatch_draw
    component._dispatch_draw(layer, gc, new_bounds, mode)
  File "/Users/aayres/.edm/envs/chaco-test-3.6-pyside2/lib/python3.6/site-packages/enable/container.py", line 271, in _dispatch_draw
    component._draw(gc, new_bounds, mode)
  File "/Users/aayres/.edm/envs/chaco-test-3.6-pyside2/lib/python3.6/site-packages/enable/component.py", line 769, in _draw
    self._dispatch_draw(layer, bb, view_bounds, mode)
  File "/Users/aayres/.edm/envs/chaco-test-3.6-pyside2/lib/python3.6/site-packages/enable/container.py", line 273, in _dispatch_draw
    component._dispatch_draw(layer, gc, new_bounds, mode)
  File "/Users/aayres/.edm/envs/chaco-test-3.6-pyside2/lib/python3.6/site-packages/enable/component.py", line 799, in _dispatch_draw
    handler(gc, view_bounds, mode)
  File "/Users/aayres/.edm/envs/chaco-test-3.6-pyside2/lib/python3.6/site-packages/chaco/base_2d_plot.py", line 204, in _draw_image
    self._render(gc)
  File "/Users/aayres/.edm/envs/chaco-test-3.6-pyside2/lib/python3.6/site-packages/chaco/contour_poly_plot.py", line 46, in _render
    self._update_polys()
  File "/Users/aayres/.edm/envs/chaco-test-3.6-pyside2/lib/python3.6/site-packages/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.

Reproduction Steps:

$ python ci/edmtool.py install --toolkit=pyside2
$ edm shell -e chaco-test-3.6-pyside2
# navigate to directory 
$ python scalar_image_function_inspector_old.py
@rahulporuri
Copy link
Contributor

FTR, it looks like the _old.py file was created in this commit - f7b9393#diff-fbff4793962cec98215d7102d12c7cdbf8fc28c3d945785ea92af3b36118bfe8 - which states that the non old version was not working in the chaco demo application

@aaronayres35
Copy link
Contributor Author

closing as this was removed in #689

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: demos Issues related to the examples/demos.
Projects
None yet
Development

No branches or pull requests

2 participants