def update_clip(self, image): vmin, vmax = fast_limits(image, self.clip_lo, self.clip_hi) self.vmin = vmin self.vmax = vmax
def update_clip(self, image): if self.clip_lo is None or self.clip_hi is None: return vmin, vmax = fast_limits(image, self.clip_lo, self.clip_hi) self.clip_vmin = vmin self.clip_vmax = vmax