SpectralShapeOne
- class glotaran.builtin.megacomplexes.spectral.shape.SpectralShapeOne(*, label: str, type: str = 'one')[source]
Bases:
SpectralShape
A constant spectral shape with value 1
Method generated by attrs for class SpectralShapeOne.
Attributes Summary
Methods Summary
calculate calculates the shape.
Get the type string.
Get the type for a type string.
Get all type strings.
Methods Documentation
- calculate(axis: ndarray) ndarray [source]
calculate calculates the shape.
- Parameters:
axis (np.ndarray) – The axis to calculate the shape on.
- Returns:
shape
- Return type: