Skip to content

Commit

Permalink
Lower unit tests precision for *colour quality scale* metric.
Browse files Browse the repository at this point in the history
  • Loading branch information
KelSolaar committed Jan 6, 2024
1 parent fd6d7ea commit a5e1633
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions colour/quality/tests/test_cqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,35 +37,35 @@ def test_colour_quality_scale(self):
np.testing.assert_allclose(
colour_quality_scale(SDS_ILLUMINANTS["FL1"]),
74.982585798279914,
atol=TOLERANCE_ABSOLUTE_TESTS,
atol=5e-5,
)

np.testing.assert_allclose(
colour_quality_scale(
SDS_ILLUMINANTS["FL1"], method="NIST CQS 7.4"
),
75.377089740493361,
atol=TOLERANCE_ABSOLUTE_TESTS,
atol=5e-5,
)

np.testing.assert_allclose(
colour_quality_scale(SDS_ILLUMINANTS["FL2"]),
64.111822015662852,
atol=TOLERANCE_ABSOLUTE_TESTS,
atol=5e-5,
)

np.testing.assert_allclose(
colour_quality_scale(
SDS_ILLUMINANTS["FL2"], method="NIST CQS 7.4"
),
64.774586908581369,
atol=TOLERANCE_ABSOLUTE_TESTS,
atol=5e-5,
)

np.testing.assert_allclose(
colour_quality_scale(SDS_LIGHT_SOURCES["Neodimium Incandescent"]),
89.737456186836681,
atol=TOLERANCE_ABSOLUTE_TESTS,
atol=5e-5,
)

np.testing.assert_allclose(
Expand All @@ -74,15 +74,15 @@ def test_colour_quality_scale(self):
method="NIST CQS 7.4",
),
87.700300087538821,
atol=TOLERANCE_ABSOLUTE_TESTS,
atol=5e-5,
)

np.testing.assert_allclose(
colour_quality_scale(
SDS_LIGHT_SOURCES["F32T8/TL841 (Triphosphor)"]
),
84.934928463428903,
atol=TOLERANCE_ABSOLUTE_TESTS,
atol=5e-5,
)

np.testing.assert_allclose(
Expand All @@ -91,7 +91,7 @@ def test_colour_quality_scale(self):
method="NIST CQS 7.4",
),
83.255457439460713,
atol=TOLERANCE_ABSOLUTE_TESTS,
atol=5e-5,
)

specification_r = ColourRendering_Specification_CQS(
Expand Down

0 comments on commit a5e1633

Please sign in to comment.