Open cshanahan1 opened 1 year ago
This is due to the fact that glue will avoid loading all pixels from the data so actually only accesses a sub-sample of the data to determine the min/max. This is important because if you were to load in e.g. a 100Gb mosaic, you definitely wouldn't want to load in all the pixels just to determine the limits.
The question is, is the threshold for data size where this is happening too low? Or would you like to have some way to cache for a given filename what seed is used for the random sub-sampling of the array?
Personally, unless this is causing some analysis problems, I'd say just chuck it under Known Issues and move on. @cshanahan1 , what do you think?
As an aside (but somewhat related) I also wonder whether the limits need to be shown with so much precision? Changing the limits at the 5th significant figure isn't going to change the RGB values of the image in any significant way?
I agree. Maybe a .3e
would be more than enough?
Or .3g for more readable numbers when close to 1
@astrofrog , is this something we have to patch in glue-jupyter?
Oh wait, maybe here but I dunno how to set format in the front-end. Maybe @kecnry knows.
I don't know of a way with vue, we could either do it with JS/CSS or on the Python side, but we can cross that bridge when we come to it.
Jdaviz component
Imviz
Description
This is a bug I noticed while reviewing https://github.com/spacetelescope/jdaviz/pull/2513, but seems to have existed before.
If you open a new instance of imviz (after restarting notebook), the initial values of vmin and vmax for display occasionally change. With the imviz example data in the notebook, sometimes they are 0 and 0.56, and sometimes they are 0.11 and 0.62. The screenshots below come from creating an imviz instance, loading data, and opening plot options to view vmin/vmax (refreshing the notebook inbetween). It is non repeatable for some reason.
How to Reproduce
Using imviz example notebook, load data and look at vmin and vmax in plot options. Refresh and do this again a few times, and youll notice sometimes that the initial values change.
Expected behavior
For a given dataset, the initial values of vmin and vmax sound be the same every time.
Browser
Safari