File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,8 @@ def test_applycutoff_range1(self):
105105 self .test_gui .qminentry .insert (0 , "10" )
106106 self .test_gui .qmaxentry .insert (0 , "40" )
107107
108- # surpressed RuntimeWarning so warning isn't generated when test encounters slice of all NaNs
108+ # Desired behavior is nans in the arrays below qmin and above qmax. As a result, np.nanmax will generate runtimewarnings when it
109+ # encounters slices that are all nans. capture these so tests pass cleanly without warnings
109110 with warnings .catch_warnings ():
110111 warnings .simplefilter ("ignore" , category = RuntimeWarning )
111112 # when
@@ -121,8 +122,9 @@ def test_applycutoff_range2(self):
121122 self .test_gui .cube = self .test_sofq
122123 self .test_gui .qminentry .insert (0 , "15" )
123124 self .test_gui .qmaxentry .insert (0 , "35" )
124-
125- # surpressed RuntimeWarning so warning isn't generated when test encounters slice of all NaNs
125+
126+ # Desired behavior is nans in the arrays below qmin and above qmax. As a result, np.nanmax will generate runtimewarnings when it
127+ # encounters slices that are all nans. capture these so tests pass cleanly without warnings
126128 with warnings .catch_warnings ():
127129 warnings .simplefilter ("ignore" , category = RuntimeWarning )
128130 # when
You can’t perform that action at this time.
0 commit comments