@@ -134,23 +134,23 @@ def _get_rescaled_pixel_array(sop_instance):
134134
135135 # The following tests are expecting the array is already of the Numpy type.
136136 if rescaled_pixel_data .dtype == np .uint8 or rescaled_pixel_data .dtype == np .uint16 :
137- logging .info ("Rescaled pixel array is already of type uint8 or uint16." )
137+ logging .debug ("Rescaled pixel array is already of type uint8 or uint16." )
138138 # Check if casting to uint16 and back to float results in the same values.
139139 elif np .all (rescaled_pixel_data > 0 ) and np .array_equal (
140140 rescaled_pixel_data , rescaled_pixel_data .astype (np .uint16 )
141141 ):
142- logging .info ("Rescaled pixel array can be safely cast to uint16 with equivalence test." )
142+ logging .debug ("Rescaled pixel array can be safely casted to uint16 with equivalence test." )
143143 rescaled_pixel_data = rescaled_pixel_data .astype (dtype = np .uint16 )
144144 # Check if casting to int16 and back to float results in the same values.
145145 elif np .array_equal (rescaled_pixel_data , rescaled_pixel_data .astype (np .int16 )):
146- logging .info ("Rescaled pixel array can be safely cast to int16 with equivalence test." )
146+ logging .debug ("Rescaled pixel array can be safely casted to int16 with equivalence test." )
147147 rescaled_pixel_data = rescaled_pixel_data .astype (dtype = np .int16 )
148148 # Check casting to float32 with equivalence test
149149 elif np .array_equal (rescaled_pixel_data , rescaled_pixel_data .astype (np .float32 )):
150- logging .info ("Rescaled pixel array can be cast to float32 with equivalence test." )
150+ logging .debug ("Rescaled pixel array can be safely casted to float32 with equivalence test." )
151151 rescaled_pixel_data = rescaled_pixel_data .astype (np .float32 )
152152 else :
153- logging .info ("Rescaled pixel data remains as of type float64." )
153+ logging .debug ("Rescaled pixel data remains as of type float64." )
154154
155155 return rescaled_pixel_data
156156
0 commit comments