lezargus.initialize module#

Module, file, and data initialization routines of Lezargus.

Everything and anything which initializes Lezargus, that is separate from Python loading this module, is done here.

lezargus.initialize.initialize(*args: tuple, **kwargs: object) None[source]#

Initialize the Lezargus module and all its parts.

This initialization function should be the very first thing that is done when the module is loaded. However, we create this function (as opposed to doing it on load) to be explicit on the load times for the module, to avoid circular dependencies, and to prevent logging when only importing the module.

The order of the initialization is important and we take care of it here. If you want to want to initialize smaller sections independently, you may use the functions within the lezargus.initialize module.

Parameters:
  • *args (tuple) – Positional arguments. There should be no positional arguments. This serves to catch them.

  • **kwargs (dict) – Keyword arguments to be passed to all other initialization functions.

Return type:

None

lezargus.initialize.initialize_configuration(*args: tuple, **kwargs: object) None[source]#

Initialize the default configuration file.

This function forces the reading and applying of the default configuration file. Note, this should not called when a user configuration file has already been provided.

Parameters:
  • *args (tuple) – Positional arguments. There should be no positional arguments. This serves to catch them.

  • **kwargs (dict) – A catch-all keyword argument, used to catch arguments which are not relevant or are otherwise passed to other internal functions.

Return type:

None

lezargus.initialize.initialize_data_all(*args: tuple, **kwargs: object) None[source]#

Initialize the all of the data files.

Load all data files into the library data module.

Parameters:
  • *args (tuple) – Positional arguments. There should be no positional arguments. This serves to catch them.

  • **kwargs (dict) – A catch-all keyword argument, used to catch arguments which are not relevant or are otherwise passed to other internal functions.

Return type:

None

lezargus.initialize.initialize_data_atmosphere_files(*args: tuple, **kwargs: object) None[source]#

Initialize the PSG atmospheric data files.

Load all of atmospheric transmission and emission data files into the library data module.

Parameters:
  • *args (tuple) – Positional arguments. There should be no positional arguments. This serves to catch them.

  • **kwargs (dict) – A catch-all keyword argument, used to catch arguments which are not relevant or are otherwise passed to other internal functions.

Return type:

None

lezargus.initialize.initialize_data_filter_files(*args: tuple, **kwargs: object) None[source]#

Initialize the photometric filter data files.

Load all of photometric filter data files into the library data module.

Parameters:
  • *args (tuple) – Positional arguments. There should be no positional arguments. This serves to catch them.

  • **kwargs (dict) – A catch-all keyword argument, used to catch arguments which are not relevant or are otherwise passed to other internal functions.

Return type:

None

lezargus.initialize.initialize_data_filter_zero_point_values(*args: tuple, **kwargs: object) None[source]#

Initialize the PSG atmospheric data files.

Load all of atmospheric transmission and emission data files into the library data module.

Parameters:
  • *args (tuple) – Positional arguments. There should be no positional arguments. This serves to catch them.

  • **kwargs (dict) – A catch-all keyword argument, used to catch arguments which are not relevant or are otherwise passed to other internal functions.

Return type:

None

lezargus.initialize.initialize_data_star_files(*args: tuple, **kwargs: object) None[source]#

Initialize the stellar spectra data files.

Load all of stellar spectra and other data files into the library data module.

Parameters:
  • *args (tuple) – Positional arguments. There should be no positional arguments. This serves to catch them.

  • **kwargs (dict) – A catch-all keyword argument, used to catch arguments which are not relevant or are otherwise passed to other internal functions.

Return type:

None

lezargus.initialize.initialize_logging_outputs(*args: tuple, **kwargs: object) None[source]#

Initialize the default logging console and file outputs.

This function initializes the logging outputs based on configured parameters. Additional logging outputs may be provided.

Parameters:
  • *args (tuple) – Positional arguments. There should be no positional arguments. This serves to catch them.

  • **kwargs (dict) – A catch-all keyword argument, used to catch arguments which are not relevant or are otherwise passed to other internal functions.

Return type:

None

lezargus.initialize.initialize_temporary_directory(*args: tuple, **kwargs: object) None[source]#

Initialize the temporary directory.

We create the temporary directory based on the configured paths.

Parameters:
  • *args (tuple) – Positional arguments. There should be no positional arguments. This serves to catch them.

  • **kwargs (dict) – A catch-all keyword argument, used to catch arguments which are not relevant or are otherwise passed to other internal functions.

Return type:

None