Skip to content

Commit

Permalink
Update cqs.py
Browse files Browse the repository at this point in the history
Limit GA to 1 for CCT >= 3500 K in CQSv7.5
  • Loading branch information
ksmet1977 authored Sep 12, 2024
1 parent 3d1492b commit f82adeb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions luxpy/color/cri/indices/cqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def spd_to_cqs(SPD, version = 'v9.0', out = 'Qa',wl = None):

if version == 'v7.5':
GA = (9.2672*(1.0e-11))*cct**3.0 - (8.3959*(1.0e-7))*cct**2.0 + 0.00255*cct - 1.612
GA = np.where(cct < 3500, GA, 1)
elif version == 'v9.0':
GA = np.ones(cct.shape)
else:
Expand Down

0 comments on commit f82adeb

Please sign in to comment.