Closed astrofrog closed 7 months ago
Is this patch not backward compatible?
I did try and make it backward compatible but may have missed something. I will investigate the jdaviz failures tomorrow.
I think it is ok. I ended up doing a version check and it seems to work. See https://github.com/spacetelescope/jdaviz/pull/2591
For the image and scatter viewers, this adds a new dictionary property
stretch_parameters
which can be used to set stretch parameters specific to the layer. These parameters are then set as attribute on state instances. So the requirement for new stretch classes is that parameters can be set as attributes on existing instances (e.g.LogStretch.exp
). Example:Glue deals with keeping
stretch_parameters
in sync with the stretch instance/object, and will deal with refreshing the plot.