CommonSignal1D
#
- class hyperspy._signals.common_signal1d.CommonSignal1D#
Bases:
object
Common functions for 1-dimensional signals.
- to_signal2D(optimize=True)#
Returns the one dimensional signal as a two dimensional signal.
By default ensures the data is stored optimally, hence often making a copy of the data. See transpose for a more general method with more options.
- optimizebool
If
True
, the location of the data in memory is optimised for the fastest iteration over the navigation axes. This operation can cause a peak of memory usage and requires considerable processing times for large datasets and/or low specification hardware. See the Transposing (changing signal spaces) section of the HyperSpy user guide for more information. When operating on lazy signals, ifTrue
, the chunks are optimised for the new axes configuration.
- Raises:
DataDimensionError
When data.ndim < 2