File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,9 @@ def get_model_for_condition(
232232 in the resulting model.
233233 :return: The generated SBML document, and SBML model
234234 """
235+ from .models .sbml_model import SbmlModel
236+ assert isinstance (petab_problem .model , SbmlModel )
237+
235238 condition_dict = {petab .SIMULATION_CONDITION_ID : sim_condition_id }
236239 if preeq_condition_id :
237240 condition_dict [petab .PREEQUILIBRATION_CONDITION_ID ] = \
@@ -245,7 +248,7 @@ def get_model_for_condition(
245248 condition_id = sim_condition_id ,
246249 is_preeq = False ,
247250 cur_measurement_df = cur_measurement_df ,
248- sbml_model = petab_problem .sbml_model ,
251+ model = petab_problem .model ,
249252 condition_df = petab_problem .condition_df ,
250253 parameter_df = petab_problem .parameter_df ,
251254 warn_unmapped = True ,
@@ -256,7 +259,7 @@ def get_model_for_condition(
256259 allow_timepoint_specific_numeric_noise_parameters = True ,
257260 )
258261 # create a copy of the model
259- sbml_doc = petab_problem .sbml_model .getSBMLDocument ().clone ()
262+ sbml_doc = petab_problem .model . sbml_model .getSBMLDocument ().clone ()
260263 sbml_model = sbml_doc .getModel ()
261264
262265 # fill in parameters
You can’t perform that action at this time.
0 commit comments