@@ -337,7 +337,7 @@ def read_training_data_rawtoaces_v1() -> MultiSpectralDistributions:
337337 190
338338 """
339339
340- global _TRAINING_DATA_RAWTOACES_V1
340+ global _TRAINING_DATA_RAWTOACES_V1 # noqa: PLW0603
341341
342342 if _TRAINING_DATA_RAWTOACES_V1 is not None :
343343 training_data = _TRAINING_DATA_RAWTOACES_V1
@@ -391,7 +391,7 @@ def generate_illuminants_rawtoaces_v1() -> CanonicalMapping:
391391 'D80', 'D85', 'D90', 'D95', 'iso7589']
392392 """
393393
394- global _ILLUMINANTS_RAWTOACES_V1
394+ global _ILLUMINANTS_RAWTOACES_V1 # noqa: PLW0603
395395
396396 if _ILLUMINANTS_RAWTOACES_V1 is not None :
397397 illuminants = _ILLUMINANTS_RAWTOACES_V1
@@ -647,7 +647,6 @@ def training_data_sds_to_RGB(
647647 runtime_warning (
648648 f'Aligning "{ training_data .name } " training data shape to "{ shape } ".'
649649 )
650- # pylint: disable=E1102
651650 training_data = reshape_msds (training_data , shape , copy = False )
652651
653652 RGB_w = white_balance_multipliers (sensitivities , illuminant )
@@ -739,7 +738,6 @@ def training_data_sds_to_XYZ(
739738 runtime_warning (
740739 f'Aligning "{ training_data .name } " training data shape to "{ shape } ".'
741740 )
742- # pylint: disable=E1102
743741 training_data = reshape_msds (training_data , shape , copy = False )
744742
745743 XYZ = np .dot (
@@ -1154,14 +1152,12 @@ def matrix_idt(
11541152 runtime_warning (
11551153 f'Aligning "{ sensitivities .name } " sensitivities shape to "{ shape } ".'
11561154 )
1157- # pylint: disable=E1102
11581155 sensitivities = reshape_msds (sensitivities , shape , copy = False )
11591156
11601157 if training_data .shape != shape :
11611158 runtime_warning (
11621159 f'Aligning "{ training_data .name } " training data shape to "{ shape } ".'
11631160 )
1164- # pylint: disable=E1102
11651161 training_data = reshape_msds (training_data , shape , copy = False )
11661162
11671163 illuminant = normalise_illuminant (illuminant , sensitivities )
0 commit comments