ssec / sift

A visualization application for satellite imagery
http://sift.ssec.wisc.edu/
GNU General Public License v3.0
46 stars 14 forks source link

Fix compatibility with vispy 0.8.0+ #329

Closed djhoese closed 2 years ago

djhoese commented 2 years ago

Fixes a few issues:

  1. vispy 0.8.0 removed some if statements that allowed our RGB Visual to have cmap = None. I've replaced this with a placeholder for no colormap that returns None for the colormap texture data and results in the same outcome.
  2. vispy 0.9.1 removed some global variables for shaders in ImageVisual, but we didn't actually need them here.
  3. When I updated the sliders to update immediately in #324 I introduced a bug that set RGB limits to something other than what they should have been (essentially the min value was being set to near 0).