Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Jun 27, 2023
1 parent da51d95 commit b9ce3a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_cct.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test_cct(self, cct):
"""

for duv in (-0.03, -0.02, -0.01, 0.0, 0.01, 0.02, 0.03):
cct2, duv2 = Color.blackbody('xyz-d65', cct, duv, scale=False).cct()
cct2, duv2 = Color.blackbody('xyz-d65', cct, duv, scale=False, method='ohno-2013').cct(method='ohno-2013')
assert math.isclose(cct2, cct, rel_tol=(0.00001 if cct < 84000 else 0.0001), abs_tol=0.000001)
assert math.isclose(duv2, duv, rel_tol=0.000001, abs_tol=0.000001)

Expand Down

0 comments on commit b9ce3a5

Please sign in to comment.