lezargus.data._make.make_constants module

Contents

lezargus.data._make.make_constants module#

Make functions to create the generally non-configurable constants.

This module is created to making the near-non-configurable constants in the data module. Configurable constants should of course be under the domain of the configuration file.

lezargus.data._make.make_constants.make_constant(key: str, basename: str = 'constants.txt') hint.Any[source]#

Load a single constant value from the main file, based on the key.

Parameters:
  • key (str) – The constant key value which we are going to be pulling from the constants file.

  • basename (str, default = "constants.txt") – The basename of the internal data file of the optic efficiency file. The paths are handled automatically. We default to the expected constant file.

Returns:

constant_value – The constant value.

Return type:

None | int | float | str