Skip to content

Commit

Permalink
Change run_stardis() function signature to allow manual input of `a…
Browse files Browse the repository at this point in the history
…tom_data`
  • Loading branch information
smokestacklightnin committed Nov 12, 2023
1 parent afcc0ca commit 8da20c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stardis/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
schema = os.path.join(base_dir, "config_schema.yml")


def run_stardis(config_fname, tracing_lambdas_or_nus):
def run_stardis(config_fname, tracing_lambdas_or_nus, atom_data=None):
"""
Runs a STARDIS simulation.
Expand Down Expand Up @@ -69,6 +69,8 @@ def run_stardis(config_fname, tracing_lambdas_or_nus):
)
+ 1,
)
if atom_data == None
else atom_data
)
# plasma
stellar_plasma = create_stellar_plasma(stellar_model, adata)
Expand Down

0 comments on commit 8da20c8

Please sign in to comment.