diff --git a/python/asteria/simulation.py b/python/asteria/simulation.py index 0d91507..9084673 100644 --- a/python/asteria/simulation.py +++ b/python/asteria/simulation.py @@ -38,6 +38,9 @@ def __init__(self, config=None, *, model=None, distance=10 * u.kpc, res_dt=2 * u self.param = {} if model and not config: + self.metadata.update({'model': {'name': model['name'], + 'param': '; '.join([f"{key}, {val}" for key, val in model['param'].items()])} + }) if not E and None in (Emin, Emax, dE): raise ValueError("Missing or incomplete energy range definition. Use argument `E` or " "arguments `Emin`, `Emax`, `dE")