Skip to content

Commit

Permalink
3764 research how we can save calibrated configurations from a dill f…
Browse files Browse the repository at this point in the history
…ile (#3829)

Co-authored-by: dvince2 <[email protected]>
  • Loading branch information
dvince2 and dvince2 authored Jun 12, 2024
1 parent d69a795 commit 8282043
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/client/hmi-client/src/types/Types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ export interface Dataset extends TerariumAsset {

export interface DatasetColumn extends TerariumEntity {
name: string;
fileName: string;
dataType: ColumnType;
formatStr?: string;
annotations: string[];
Expand Down Expand Up @@ -239,6 +240,7 @@ export interface InitialSemantic extends Semantic {
export interface ModelConfiguration extends TerariumAsset {
calibrationRunId: string;
modelId: string;
simulationId?: string;
observableSemanticList: ObservableSemantic[];
parameterSemanticList: ParameterSemantic[];
initialSemanticList: InitialSemantic[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import software.uncharted.terarium.hmiserver.annotations.TSModel;
import software.uncharted.terarium.hmiserver.annotations.TSOptional;
import software.uncharted.terarium.hmiserver.models.TerariumAsset;

@EqualsAndHashCode(callSuper = true)
Expand All @@ -23,6 +24,10 @@ public class ModelConfiguration extends TerariumAsset {
private UUID calibrationRunId;
private UUID modelId;

/** This is "simulation" in the sense of our POJO. It actually corresponds to a pyciemss calibration */
@TSOptional
private UUID simulationId;

@OneToMany(mappedBy = "modelConfiguration", fetch = FetchType.EAGER, cascade = CascadeType.ALL)
@JsonManagedReference
private List<ObservableSemantic> observableSemanticList = new ArrayList<>();
Expand Down

0 comments on commit 8282043

Please sign in to comment.