@@ -116,39 +116,34 @@ def test_sd_to_aces_relative_exposure_values(self):
116116 atol = TOLERANCE_ABSOLUTE_TESTS ,
117117 )
118118
119- # NOTE: Reduced precision for random unit tests failure.
120119 dark_skin = SDS_COLOURCHECKERS ["ColorChecker N Ohta" ]["dark skin" ]
121120 np .testing .assert_allclose (
122121 sd_to_aces_relative_exposure_values (dark_skin ),
123122 np .array ([0.11807796 , 0.08690312 , 0.05891252 ]),
124- atol = 1e-5 ,
123+ atol = TOLERANCE_ABSOLUTE_TESTS ,
125124 )
126125
127- # NOTE: Reduced precision for random unit tests failure.
128- dark_skin = SDS_COLOURCHECKERS ["ColorChecker N Ohta" ]["dark skin" ]
129126 np .testing .assert_allclose (
130127 sd_to_aces_relative_exposure_values (
131128 dark_skin , SDS_ILLUMINANTS ["A" ]
132129 ),
133130 np .array ([0.12937082 , 0.09120875 , 0.06110636 ]),
134- atol = 1e-4 ,
131+ atol = TOLERANCE_ABSOLUTE_TESTS ,
135132 )
136133
137- dark_skin = SDS_COLOURCHECKERS ["ColorChecker N Ohta" ]["dark skin" ]
138134 np .testing .assert_allclose (
139135 sd_to_aces_relative_exposure_values (dark_skin ),
140136 np .array ([0.11807796 , 0.08690312 , 0.05891252 ]),
141- atol = 1e-5 ,
137+ atol = TOLERANCE_ABSOLUTE_TESTS ,
142138 )
143139
144- dark_skin = SDS_COLOURCHECKERS ["ColorChecker N Ohta" ]["dark skin" ]
145140 np .testing .assert_allclose (
146141 sd_to_aces_relative_exposure_values (
147142 dark_skin ,
148143 chromatic_adaptation_transform = "Bradford" ,
149144 ),
150145 np .array ([0.11805993 , 0.08689013 , 0.05900396 ]),
151- atol = 1e-5 ,
146+ atol = TOLERANCE_ABSOLUTE_TESTS ,
152147 )
153148
154149 def test_domain_range_scale_spectral_to_aces_relative_exposure_values (
@@ -833,7 +828,6 @@ def test_training_data_sds_to_XYZ(self):
833828 SDS_COLOURCHECKERS ["BabelColor Average" ].values ()
834829 )
835830
836- # NOTE: Reduced precision for random unit tests failure.
837831 np .testing .assert_allclose (
838832 training_data_sds_to_XYZ (
839833 training_data ,
@@ -868,10 +862,9 @@ def test_training_data_sds_to_XYZ(self):
868862 [0.03058273 , 0.03200953 , 0.03277947 ],
869863 ]
870864 ),
871- atol = 1e-6 ,
865+ atol = TOLERANCE_ABSOLUTE_TESTS ,
872866 )
873867
874- # NOTE: Reduced precision for random unit tests failure.
875868 np .testing .assert_allclose (
876869 training_data_sds_to_XYZ (
877870 training_data ,
@@ -907,7 +900,7 @@ def test_training_data_sds_to_XYZ(self):
907900 [0.03058222 , 0.03200864 , 0.03278183 ],
908901 ]
909902 ),
910- atol = 1e-6 ,
903+ atol = TOLERANCE_ABSOLUTE_TESTS ,
911904 )
912905
913906
0 commit comments