data_loader

specutils.io.registers.data_loader(label, identifier=None, dtype=<class 'specutils.spectra.spectrum1d.Spectrum1D'>)[source]

Wraps a function that can be added to an registry for custom file reading.

Parameters:

label : str

The label given to the function inside the registry.

identifier : func

The identified function used to verify that a file is to use a particular file.

dtype : class

A class reference for which the data loader should be store.