File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
src/astro_image_display_api Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -74,11 +74,6 @@ class ImageViewerLogic:
7474 state to simulate the behavior of a real viewer.
7575 """
7676
77- _cuts : BaseInterval | tuple [float , float ] = AsymmetricPercentileInterval (
78- upper_percentile = 95
79- )
80- _stretch : BaseStretch = LinearStretch
81-
8277 # some internal variable for keeping track of viewer state
8378 _wcs : WCS | None = None
8479 _center : tuple [numbers .Real , numbers .Real ] = (0.0 , 0.0 )
@@ -189,9 +184,9 @@ def set_cuts(
189184 ** kwargs , # noqa: ARG002
190185 ) -> None :
191186 if isinstance (value , tuple ) and len (value ) == 2 :
192- self . _cuts = ManualInterval (value [0 ], value [1 ])
187+ cuts = ManualInterval (value [0 ], value [1 ])
193188 elif isinstance (value , BaseInterval ):
194- self . _cuts = value
189+ cuts = value
195190 else :
196191 raise TypeError (
197192 "Cuts must be an Astropy.visualization Interval object or a tuple "
@@ -202,7 +197,7 @@ def set_cuts(
202197 raise ValueError (
203198 f"Image label '{ image_label } ' not found. Please load an image first."
204199 )
205- self ._images [image_label ].cuts = self . _cuts
200+ self ._images [image_label ].cuts = cuts
206201
207202 def set_colormap (
208203 self ,
You can’t perform that action at this time.
0 commit comments