Skip to content

Commit

Permalink
Update model param formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sgriswol committed Jan 12, 2024
1 parent a7f0647 commit a3056fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/asteria/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit a3056fa

Please sign in to comment.