Skip to content

Commit 12ce9f9

Browse files
committed
Logging level change to debug.
Signed-off-by: M Q <[email protected]>
1 parent e94840d commit 12ce9f9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

monai/deploy/operators/dicom_series_to_volume_operator.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)