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

[BUG] Moment map creates nan image with frequency units and continuum #2801

Closed
javerbukh opened this issue Apr 15, 2024 · 0 comments · Fixed by #2803
Closed

[BUG] Moment map creates nan image with frequency units and continuum #2801

javerbukh opened this issue Apr 15, 2024 · 0 comments · Fixed by #2803
Labels
bug Something isn't working needs-triage Issue opened via template and needs triaging

Comments

@javerbukh
Copy link
Contributor

Jdaviz component

Cubeviz

Description

After #2758 is merged, there is a bug where changing the display units to Hz and using a continuum to create a moment map of 1 creates an image of NaNs.

How to Reproduce

  1. Run CubevizExample notebook
  2. Change units to Hz
  3. Create spectral subset
  4. Open moment map plugin
  5. Spectral region is Subset 1
  6. Continuum of surrounding
  7. Moment of 1
  8. Spectral units
  9. Add data to image viewer
  10. Calculate moment

You should see a blank image in the image viewer the data was added to.

Expected behavior

A moment map of 1 for the image in frequency units.

Browser

No response

Jupyter

jupyter --version

Software versions

Windows-10-10.0.19045-SP0
Python 3.9.18 (main, Sep 11 2023, 14:09:26) [MSC v.1916 64 bit (AMD64)]
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.4
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.1
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
ipypopout 1.2.0
Jinja2 3.1.2
voila 0.4.3
vispy 0.14.1
sidecar 0.7.0
Jdaviz 3.8.1.dev307+g9b46dbff.d20240314

@javerbukh javerbukh added bug Something isn't working needs-triage Issue opened via template and needs triaging labels Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Issue opened via template and needs triaging
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant