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] Imviz: deprecation warning from glue-core v1.6 #1818

Closed
bmorris3 opened this issue Nov 3, 2022 · 6 comments
Closed

[BUG] Imviz: deprecation warning from glue-core v1.6 #1818

bmorris3 opened this issue Nov 3, 2022 · 6 comments
Labels
bug Something isn't working imviz

Comments

@bmorris3
Copy link
Contributor

bmorris3 commented Nov 3, 2022

I'm testing the latest glue-core release for jdaviz.

Running the simple Imviz example below:

from astroquery.mast import Observations
from jdaviz import Imviz
import tempfile

data_dir = tempfile.gettempdir()
fn = "jw02727-o002_t062_nircam_clear-f090w_i2d.fits"
uri = f"mast:JWST/product/{fn}"
path = f"{data_dir}/{fn}"
result = Observations.download_file(uri, local_path=path, cache=True)

im = Imviz()

im.load_data(path)

produces the following warnings:

2022-11-03 10:55:38,690 - stpipe - WARNING - /Users/bmmorris/miniconda3/envs/jdaviz/lib/python3.9/site-packages/glue/viewers/common/viewer.py:186: UserWarning: Add large data set?
  warnings.warn(message)

2022-11-03 10:55:39,088 - stpipe - WARNING - /Users/bmmorris/miniconda3/envs/jdaviz/lib/python3.9/site-packages/glue/viewers/image/composite_array.py:72: UserWarning: Setting colormap using "color" key is deprecated, use "cmap" instead.
  warnings.warn('Setting colormap using "color" key is deprecated, use "cmap" instead.', UserWarning)

2022-11-03 10:55:39,091 - stpipe - WARNING - /Users/bmmorris/miniconda3/envs/jdaviz/lib/python3.9/site-packages/glue/viewers/image/composite_array.py:72: UserWarning: Setting colormap using "color" key is deprecated, use "cmap" instead.
  warnings.warn('Setting colormap using "color" key is deprecated, use "cmap" instead.', UserWarning)

It looks like the latter warning came from glue-viz/glue#2343.

Expected behavior
Fewer warnings, if possible.

Desktop (please complete the following information):

  • OS: Mac OS X
  • Browser: Chrome v106
  • Jupyter:
IPython          : 8.5.0
ipykernel        : 6.15.3
ipywidgets       : 7.7.2
jupyter_client   : 7.3.5
jupyter_core     : 4.11.1
jupyter_server   : 1.18.1
jupyterlab       : 3.4.7
nbclient         : 0.5.13
nbconvert        : 6.5.4
nbformat         : 5.5.0
notebook         : 6.4.12
qtconsole        : 5.3.2
traitlets        : 5.4.0
@bmorris3 bmorris3 added bug Something isn't working imviz labels Nov 3, 2022
@pllim
Copy link
Contributor

pllim commented Nov 3, 2022

Why didn't we catch it in devdeps?

jdaviz/tox.ini

Line 51 in 1a0c846

devdeps: git+https://github.com/glue-viz/glue.git

Why is the warning coming from stpipe? If you uninstall stpipe, does it go away?

@bmorris3
Copy link
Contributor Author

bmorris3 commented Nov 3, 2022

Ah, after investigating a bit more, I found that the warning stems from glue-jupyter v0.14.1. Upgrading to glue-jupyter v0.14.2 resolves the warning. No issues here if you simultaneously upgrade glue-core and glue-jupyter. 😅

@bmorris3 bmorris3 closed this as completed Nov 3, 2022
@pllim
Copy link
Contributor

pllim commented Nov 3, 2022

😌

@pllim
Copy link
Contributor

pllim commented Nov 3, 2022

A grep for color in Jdaviz still give many matches, so if you see this again in other places, please open a new issue!

@kecnry
Copy link
Member

kecnry commented Nov 3, 2022

now that glue 1.6 is out, should we pin glue >= 1.6 and glue-jupyter >= 0.14.2 to ensure the composite array speedups and that this conflict can't happen?

@pllim
Copy link
Contributor

pllim commented Nov 3, 2022

Why do I have deja vu that we talked about this before? Ah yes, didn't you say you were going to open PR with those pins? 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working imviz
Projects
None yet
Development

No branches or pull requests

3 participants