Skip to content

Commit

Permalink
added kwarg pass through for run_tardis kwargs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Williamson authored and Marc Williamson committed Jul 22, 2021
1 parent 58aa21b commit 28dc142
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tardis/grid/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def grid_row_to_model(self, row_index):
model = Radial1DModel.from_config(rowconfig)
return model

def run_sim_from_grid(self, row_index):
def run_sim_from_grid(self, row_index, **tardiskwargs):
"""
Runs a full TARDIS simulation using the base self.config
modified by the user specified row_index.
Expand All @@ -127,7 +127,7 @@ def run_sim_from_grid(self, row_index):
Completed TARDIS simulation object.
"""
tardis_config = self.grid_row_to_config(row_index)
sim = tardis.run_tardis(tardis_config)
sim = tardis.run_tardis(tardis_config, **tardiskwargs)
return sim

def save_grid(self, filename):
Expand Down

0 comments on commit 28dc142

Please sign in to comment.