Skip to content

Commit b490500

Browse files
committed
Add warning prefix
1 parent 00683be commit b490500

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spectral/graphics/spypylab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ def updater(*args, **kwargs):
793793
self.selector = None
794794
msg = 'Failed to create RectangleSelector object. Interactive ' \
795795
'pixel class labeling will be unavailable.'
796-
warn(msg)
796+
warnings.warn(msg)
797797

798798
def label_region(self, rectangle, class_id):
799799
'''Assigns all pixels in the rectangle to the specified class.

0 commit comments

Comments
 (0)