File tree Expand file tree Collapse file tree 4 files changed +5
-6
lines changed
Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ def _parse_table_section(lines):
177177 seek += 9
178178 size , table = _parse_table_section (lines [seek :])
179179
180- attest (np .product (size ) == len (table ), '"LUT" table size is invalid!' )
180+ attest (np .prod (size ) == len (table ), '"LUT" table size is invalid!' )
181181
182182 LUT : LUT3x1D | LUT3D | LUTSequence
183183 if (
Original file line number Diff line number Diff line change @@ -1756,7 +1756,7 @@ def xyY_from_renotation(specification: ArrayLike) -> NDArrayFloat:
17561756 (_munsell_specifications () == specification ).all (axis = - 1 )
17571757 )
17581758
1759- return MUNSELL_COLOURS_ALL [int (index [0 ])][1 ]
1759+ return MUNSELL_COLOURS_ALL [as_int_scalar (index [0 ])][1 ]
17601760 except Exception as error :
17611761 raise ValueError (
17621762 f'"{ specification } " specification does not exists in '
Original file line number Diff line number Diff line change 6464 CanonicalMapping ,
6565 Structure ,
6666 as_float_array ,
67+ as_int_scalar ,
6768 attest ,
6869 first_item ,
6970 is_sibling ,
@@ -1330,7 +1331,7 @@ def plot_multi_colour_swatches(
13301331
13311332 offset_X += width + spacing
13321333
1333- x_max = min (len (colour_swatches ), int (columns ))
1334+ x_max = min (len (colour_swatches ), as_int_scalar (columns ))
13341335 x_max = x_max * width + x_max * spacing - spacing
13351336 y_max = offset_Y
13361337
Original file line number Diff line number Diff line change @@ -310,9 +310,7 @@ def RGB_colourspace_volume_MonteCarlo(
310310 [arguments for _ in range (processes )],
311311 )
312312
313- Lab_volume = np .product (
314- [np .sum (np .abs (x )) for x in as_float_array (limits )]
315- )
313+ Lab_volume = np .prod ([np .sum (np .abs (x )) for x in as_float_array (limits )])
316314
317315 return Lab_volume * np .sum (results ) / (process_samples * processes )
318316
You can’t perform that action at this time.
0 commit comments