Skip to content

Commit 12a4cba

Browse files
committed
Replace "np.newaxis" with "None".
1 parent fd346a1 commit 12a4cba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

colour_checker_detection/detection/segmentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ def detect_colour_checkers_segmentation(
11151115
settings.swatches_achromatic_slice,
11161116
]:
11171117
swatch_std_mean = as_float_array(swatch_colours[slice_])
1118-
swatch_std_mean /= swatch_std_mean[..., 1][..., np.newaxis]
1118+
swatch_std_mean /= swatch_std_mean[..., 1][..., None]
11191119
std_means.append(np.mean(np.std(swatch_std_mean, 0)))
11201120
if std_means[0] < std_means[1]:
11211121
usage_warning(

0 commit comments

Comments
 (0)