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
Hi. sorry to add another issue but we seem to have a problem with get_spec_from_ellipse_params not working. When we run it we get a IndexError in the draw_pyregion function.
I think that is because eventually the function:
draw_pyregion()
is called.
Where the function is defined you have
fig=plt.figure(self.n)
ax=fig.axes[0]
In lines 647 and 648. fig.axes[0] is always going to result in an IndexError in this case because fig.axes is empty. Am I missing something?
Thanks.
-TSL
The text was updated successfully, but these errors were encountered:
When you load the cube, PyMUSE open an figure that shows the white image. Do not close that figure when you extract an spectrum. The error seems to occur because PyMUSE wants to draw the aperture in that figure, but the figure is close, so there are no axes. You can also reopen it using cube.reload_canvas()
Hi. sorry to add another issue but we seem to have a problem with get_spec_from_ellipse_params not working. When we run it we get a IndexError in the draw_pyregion function.
I think that is because eventually the function:
draw_pyregion()
is called.
Where the function is defined you have
In lines 647 and 648. fig.axes[0] is always going to result in an IndexError in this case because fig.axes is empty. Am I missing something?
Thanks.
-TSL
The text was updated successfully, but these errors were encountered: