Skip to content

Commit e8afd11

Browse files
committed
Fix test for stretch
- fix #159 - fixes test for "stretch"; use method API to fetch the distribution object rather than accessing instance variable
1 parent 3382c7e commit e8afd11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

astrowidgets/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ def stretch(self):
814814
"""
815815
The image stretching algorithm in use.
816816
"""
817-
return self._viewer.rgbmap.dist
817+
return self._viewer.rgbmap.get_dist()
818818

819819
# TODO: Possible to use astropy.visualization directly?
820820
@stretch.setter

0 commit comments

Comments
 (0)