get_config

Contents

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, list or dict, optional) – Scene configuration, as accepted by read_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, list or dict, optional) – Instrument configuration, as accepted by read_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.