-
Notifications
You must be signed in to change notification settings - Fork 74
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
[BUG] Imviz API triggering IndexError from Glue #2638
Comments
Interesting... looks like you only see this traceback when images are linked by WCS, not when linked by pixel. |
Might be some off-by-one error somewhere in the calculations. A shape: |
This is triggered by the Interestingly enough, when you run the same workflow in ImvizDitheredExample , I think it goes through the same logic route but Before we jump into any rabbit hole, keep in mind that no one really creates a subset like this. That was just a fun example. Since it works in ImvizDitheredExample , we can keep it there. But for this ImvizExample notebook, I say we just remove |
Upstream issue opened at glue-viz/glue#2474 |
Jdaviz component
Imviz
Description
I've now hit a couple instances where the using the Imviz API leads to an IndexError from Glue core. The traceback copied below resulted from running the
viewer.offset_by(0.5 * u.arcsec, -1.5 * u.arcsec)
cell in the ImvizExample notebook, but I also have seen the same error from running the command to add markers. It seems like this only happens if the cell toload_regions
in the notebook has been run.How to Reproduce
Execute the ImvizExample notebook, see that this error does not get raised if you skip the
load_regions
cell.Expected behavior
Imviz API calls do not raise this error after loading regions through the API.
Browser
No response
Jupyter
IPython : 8.18.1
ipykernel : 6.27.1
ipywidgets : 8.1.1
jupyter_client : 8.6.0
jupyter_core : 5.5.0
jupyter_server : 2.11.1
jupyterlab : 4.0.9
nbclient : 0.7.4
nbconvert : 7.11.0
nbformat : 5.9.2
notebook : 7.0.6
qtconsole : 5.5.1
traitlets : 5.14.0
Software versions
macOS-10.16-x86_64-i386-64bit
Python 3.11.5 (main, Sep 11 2023, 08:19:27) [Clang 14.0.6 ]
Numpy 1.26.2
astropy 6.0.0
matplotlib 3.8.2
scipy 1.11.4
scikit-image 0.22.0
asdf 3.0.1
stdatamodels 1.8.3
gwcs 0.20.0
regions 0.8
specutils 1.12.0
specreduce 1.3.0
photutils 1.10.0
astroquery 0.4.6
pyyaml 6.0.1
asteval 0.9.31
idna 3.6
traitlets 5.14.0
bqplot 0.12.42
bqplot-image-gl 1.4.11
glue-core 1.17.1
glue-jupyter 0.20.0
glue-astronomy 0.10.0
echo 0.8.0
ipyvue 1.10.1
ipyvuetify 1.8.10
ipysplitpanes 0.2.0
ipygoldenlayout 0.4.0
Jinja2 3.1.2
voila 0.4.3
vispy 0.14.1
sidecar 0.7.0
Jdaviz 3.8.1.dev47+g8f4292a1.d20231207
🐱
The text was updated successfully, but these errors were encountered: