colour.colorimetry.reshape_msds#

colour.colorimetry.reshape_msds(msds: TypeMultiSpectralDistributions, shape: SpectralShape = SPECTRAL_SHAPE_DEFAULT, method: Literal['Align', 'Extrapolate', 'Interpolate', 'Trim'] | str = 'Align', copy: bool = True, **kwargs: Any) TypeMultiSpectralDistributions[source]#

Reshape the specified multi-spectral distributions to match the specified spectral shape.

The reshaped object is cached, thus another call to the definition with the same arguments will yield the cached object immediately.

Parameters:
Return type:

colour.MultiSpectralDistributions

Warning

Contrary to Numpy, reshaping multi-spectral distributions alters their data!