Skip to content

Commit

Permalink
Ensure that colour.colorimetry.sds_and_msds_to_msds definition alwa…
Browse files Browse the repository at this point in the history
…ys copy the converted spectral distributions.
  • Loading branch information
KelSolaar committed Jan 23, 2024
1 parent 8faeb09 commit 891d364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion colour/colorimetry/spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -3074,7 +3074,7 @@ def sds_and_msds_to_msds(
display_labels = []
for sd in sds_converted:
if sd.shape != shape:
sd = sd.align(shape) # noqa: PLW2901
sd = sd.copy().align(shape) # noqa: PLW2901

values.append(sd.values)
labels.append(
Expand Down

0 comments on commit 891d364

Please sign in to comment.