From f82adeb3fe0ed7ccc0e45ee9db12c75706e9c01f Mon Sep 17 00:00:00 2001 From: "Kevin A.G. Smet" Date: Thu, 12 Sep 2024 13:57:36 +0200 Subject: [PATCH] Update cqs.py Limit GA to 1 for CCT >= 3500 K in CQSv7.5 --- luxpy/color/cri/indices/cqs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/luxpy/color/cri/indices/cqs.py b/luxpy/color/cri/indices/cqs.py index 318e1703..bd055f24 100644 --- a/luxpy/color/cri/indices/cqs.py +++ b/luxpy/color/cri/indices/cqs.py @@ -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: