LIGHTNING_FIT#
Name#
LIGHTNING_FIT
Purpose#
Generates the models and priors specified in the Lightning configuration structure, and passes them and the SED data to the specified fitting algorithm.
Calling Sequence#
lightning_fit, input_dir, sed_data, config
Inputs#
input_dirstring scalarThe path to the file containing the input SED data.
sed_datastructureA structure containing the SED luminosities and uncertainties, filter labels, distances, redshifts, and optional X-ray data. (See
lightning_input.profor details and contents.)configstructureA Lightning configuration structure. (See
lightning_configure_defaults.profor details and contents.)
Modification History#
2022/05/13: Created (Keith Doore)
2022/07/11: Moved models generation to separate function (Keith Doore)
2022/07/27: Added non-parametric SFH bin cutting (Keith Doore)
2022/08/09: Added
galactic_nhas input for xray emission from sed_data (Keith Doore)2022/08/17: Fixed issue where
config.PSIwas being updated and returned tolightning.proifconfig.MAXCPU = 1(Keith Doore)2022/09/15: Removed different calls to
lightning_models.profor X-ray emission and no X-ray emission, sincelightning_input.pronow handles including X-ray emission if requested in configuration. (Keith Doore)2022/10/25: Renamed SPS to SSP (Keith Doore)