astromodels.utils.config_structure module

class astromodels.utils.config_structure.AbsTables(value)[source]

Bases: Enum

An enumeration.

AG89 = 'AG89'
ASPL = 'ASPL'
WILM = 'WILM'
class astromodels.utils.config_structure.AbsorptionModels(tbabs_table: astromodels.utils.config_structure.AbsTables = <AbsTables.WILM: 'WILM'>, phabs_table: astromodels.utils.config_structure.AbsTables = <AbsTables.AG89: 'AG89'>, ebl_table: astromodels.utils.config_structure.EBLTable = <EBLTable.dominguez: 'dominguez'>)[source]

Bases: object

ebl_table: EBLTable = 'dominguez'
phabs_table: AbsTables = 'AG89'
tbabs_table: AbsTables = 'WILM'
class astromodels.utils.config_structure.Config(logging: astromodels.utils.config_structure.Logging = <factory>, absorption_models: astromodels.utils.config_structure.AbsorptionModels = <factory>, modeling: astromodels.utils.config_structure.Modeling = <factory>)[source]

Bases: object

absorption_models: AbsorptionModels
logging: Logging
modeling: Modeling
class astromodels.utils.config_structure.EBLTable(value)[source]

Bases: Enum

An enumeration.

dominguez = 'dominguez'
franceschini = 'franceschini'
gilmore = 'gilmore'
inuoe = 'inuoe'
kneiske = 'kneiske'
class astromodels.utils.config_structure.Logging(path: str = '~/.astromodels/log', developer: bool = 'off', usr: bool = 'on', console: bool = 'on', level: astromodels.utils.config_structure.LoggingLevel = <LoggingLevel.INFO: 20>, startup_warnings: bool = 'on', info_style: str = 'medium_spring_green', warn_style: str = 'medium_orchid', error_style: str = 'blink bold bright_red', debug_style: str = 'blue_violet', message_style: str = 'bold grey78')[source]

Bases: object

console: bool = 'on'
debug_style: str = 'blue_violet'
developer: bool = 'off'
error_style: str = 'blink bold bright_red'
info_style: str = 'medium_spring_green'
level: LoggingLevel = 20
message_style: str = 'bold grey78'
path: str = '~/.astromodels/log'
startup_warnings: bool = 'on'
usr: bool = 'on'
warn_style: str = 'medium_orchid'
class astromodels.utils.config_structure.LoggingLevel(value)[source]

Bases: IntEnum

An enumeration.

CRITICAL = 50
DEBUG = 10
ERROR = 40
INFO = 20
WARNING = 30
class astromodels.utils.config_structure.Modeling(use_memoization: bool = True, use_parameter_transforms: bool = True, ignore_parameter_bounds: bool = False)[source]

Bases: object

ignore_parameter_bounds: bool = False
use_memoization: bool = True
use_parameter_transforms: bool = True