lumispy.signals.luminescence_transientspec module

Signal class for luminescence transient data (2D)

class lumispy.signals.luminescence_transientspec.LazyLumiTransientSpectrum(*args, **kwargs)

Bases: LazySignal, LumiTransientSpectrum

Lazy 2D luminescence signal class (spectral+transient/time resolved dimensions)

class lumispy.signals.luminescence_transientspec.LumiTransientSpectrum(*args, **kwargs)

Bases: Signal2D, CommonLumi, CommonTransient

2D luminescence signal class (spectrum+transient/time resolved dimensions)

spec2nav(optimize=True)

Return the streak image as signal with the spectral axis as navigation axis and the time axis as signal axis. For efficient iteration over transients as a function of the spectral positions (e.g. for fitting transients). By default, the method ensures that the data is stored optimally, hence often making a copy of the data.

Parameters:

optimize (bool) – 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, if True, the chunks are optimised for the new axes configuration.

Returns:

signal – A signal of type LumiTransient.

Return type:

LumiSpectrum

See also

lumispy.signals.LumiTransientSpectrum.time2nav, hyperspy.api.signals.BaseSignal.transpose

time2nav(optimize=True)

Return the streak image as signal with the time axis as navigation axis and the spectral axis as signal axis. For efficient iteration over spectra as a function of time (e.g. for fitting spectra). By default, the method ensures that the data is stored optimally, hence often making a copy of the data.

Parameters:

optimize (bool) – 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, if True, the chunks are optimised for the new axes configuration.

Returns:

signal – A signal of type LumiSpectrum.

Return type:

LumiSpectrum

See also

lumispy.signals.LumiTransientSpectrum.time2nav, hyperspy.api.signals.BaseSignal.transpose

class lumispy.signals.luminescence_transientspec.TransientSpectrumCasting(*args, **kwargs)

Bases: Signal1D, CommonLumi, CommonTransient

Hidden signal class 1D version of TransientSpectrum signal class for casting LumiTransientSpectrum` to either ``Luminescence or Transient when the signal dimensionality is reduced.

Example:

>>> s = LumiTransientSpectrum(np.random.random((10, 10, 10, 10))) * 2
>>> s.axes_manager.signal_axes[-1].units = 'ps'
>>> s.axes_manager.signal_axes[0].units = 'nm'
>>> s.sum(axis=-1)
>>> s
<LumiSpectrum, title: , dimensions: (10, 10|10)>