Skip to content

Commit

Permalink
Ensure that sd is converted to ndarray before converting to bytes…
Browse files Browse the repository at this point in the history
… in `colour.sd_to_XYZ` definition.
  • Loading branch information
KelSolaar committed Mar 15, 2024
1 parent 426125a commit bb35ab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion colour/colorimetry/tristimulus_values.py
Expand Up @@ -1249,7 +1249,7 @@ def sd_to_XYZ(
(
sd
if isinstance(sd, (SpectralDistribution, MultiSpectralDistributions))
else int_digest(sd.tobytes()) # pyright: ignore
else int_digest(np.asarray(sd).tobytes()) # pyright: ignore
), # pyright: ignore
cmfs,
illuminant,
Expand Down

0 comments on commit bb35ab9

Please sign in to comment.