get_config#
- get_config(scene='supernova.toml', instrument='lazuli_cbe.toml')[source]#
Read the scene and instrument configuration files.
The final configuration has the following structure:
{'scene': {'pointsource': {...}, 'background': {...} }, 'telescope': {...}, 'spectrograph': {...}, 'detector': {...}, 'extraction': {...}, }
- Parameters:
scene (
str,listordict, optional) – Scene configuration, as accepted byread_config: a filename (e.g."supernova"), a list of filenames and/or dictionaries merged from left to right, or a configuration dictionary. Default is"supernova.toml".instrument (
str,listordict, optional) – Instrument configuration, as accepted byread_config. Default is"lazuli_cbe.toml".
- Returns:
dict– Configuration dictionary.
Notes
The scene and instrument configurations are combined with a shallow merge: a top-level key present in both is taken from
instrument.