Skip to content

Commit

Permalink
Calibration Configuration inferred params fix (#4936)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Szendrey authored Sep 27, 2024
1 parent 2aa5ac1 commit 6f3ed5e
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import org.springframework.stereotype.Service;
import software.uncharted.terarium.hmiserver.configuration.Config;
import software.uncharted.terarium.hmiserver.models.dataservice.model.Model;
import software.uncharted.terarium.hmiserver.models.dataservice.model.configurations.InferredParameterSemantic;
import software.uncharted.terarium.hmiserver.models.dataservice.model.configurations.InitialSemantic;
import software.uncharted.terarium.hmiserver.models.dataservice.model.configurations.ModelConfiguration;
import software.uncharted.terarium.hmiserver.models.dataservice.model.configurations.ObservableSemantic;
Expand Down Expand Up @@ -125,6 +126,12 @@ private static void setSemanticDBRelationships(final ModelConfiguration modelCon
semantic.setModelConfiguration(modelConfiguration);
}
}

if (modelConfiguration.getInferredParameterList() != null) {
for (final InferredParameterSemantic semantic : modelConfiguration.getInferredParameterList()) {
semantic.setModelConfiguration(modelConfiguration);
}
}
}

private static List<InitialSemantic> createInitialSemanticList(final Model model) {
Expand Down

0 comments on commit 6f3ed5e

Please sign in to comment.