From dcce4b86ff616cdda7e94cb8c106a36971f34b2a Mon Sep 17 00:00:00 2001 From: Thomas Mansencal Date: Wed, 28 Aug 2024 08:08:22 +1200 Subject: [PATCH] Ensure that `colour.SpectralShape` can be initialised outside typical visible spectrum range. Closes #1290. --- colour/colorimetry/spectrum.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/colour/colorimetry/spectrum.py b/colour/colorimetry/spectrum.py index c0ddbf245..bf9b8c207 100644 --- a/colour/colorimetry/spectrum.py +++ b/colour/colorimetry/spectrum.py @@ -151,8 +151,8 @@ class SpectralShape: """ def __init__(self, start: Real, end: Real, interval: Real) -> None: - self._start: Real = 360 - self._end: Real = 780 + self._start: Real = 0 + self._end: Real = np.inf self._interval: Real = 1 self.start = start self.end = end