Spectral_Normalization

Spectral_Normalization#

class Spectral_Normalization#

Bases: BASE

Introduces, in a given object, the functionality to normalize the continuum level. In order to inherit from this class, it must also be a children of SBART.Components.SpectrumComponent.Spectrum

User parameters:

Parameter name

Mandatory

Default Value

Valid Values

Comment

NORMALIZATION_MODE

False

RASSINE

[1]

Notes

[1] Name of the spectral normalizers, that are described in SBART.spectral_normalization

Note: Also check the User parameters of the parent classes for further customization options of SBART

__init__(**kwargs)#
initialize_normalization_interface()#

Initialize the normalization interface for the currently selected mode!

Return type:

NoReturn

normalize_spectra()#

TODO: See if we need to parallelize this!

Launch the normalization of the spectra, using the selected algorithm

trigger_epochwise_method(norm_interface)#
trigger_orderwise_method(norm_interface)#
add_relative_path(path_name, relative_structure)#
add_to_status(new_flag)#
Return type:

NoReturn

classmethod config_help()#

Prints a message to terminal, showing all possible configurations and their constraints

classmethod control_parameters()#
generate_root_path(storage_path, no_logs=True)#
Return type:

NoReturn

is_object_type(type_to_check)#

Check if this object is of a given type

Parameters:

type_to_check (str) –

Return type:

bool

property is_valid: bool#
Return type:

bool

json_ready()#

Concerts the current class into a json entry that can be easily saved/loaded to/from disk

Return type:

Dict[str, Any]

load_from_file(root_path, loading_path)#
Return type:

None

property name: str#
Return type:

str

property storage_name: str#
Return type:

str

trigger_data_storage(*args, **kwargs)#
Return type:

NoReturn