Skip to content

Commit

Permalink
Calibrated Configs failing createAMRFromConfiguration (#5877)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Chang <[email protected]>
  • Loading branch information
Tom-Szendrey and mwdchang authored Dec 19, 2024
1 parent 217bdaa commit 35e331e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,10 @@ private static ModelDistribution getModelDistribution(final ModelParameter param
}

public static Model createAMRFromConfiguration(final Model model, final ModelConfiguration modelConfiguration) {
setModelParameters(model.getParameters(), modelConfiguration.getParameterSemanticList());
// Do not bother setting when we have simulationId as we will use that calibration's inferred parameters.
if (modelConfiguration.getSimulationId() == null) {
setModelParameters(model.getParameters(), modelConfiguration.getParameterSemanticList());
}
setModelInitials(model.getInitials(), modelConfiguration.getInitialSemanticList());
setModelObservables(model.getObservables(), modelConfiguration.getObservableSemanticList());
return model.clone();
Expand Down

0 comments on commit 35e331e

Please sign in to comment.