Skip to content

Commit

Permalink
allow for intervention id to not be passed
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Szendrey committed Jul 4, 2024
1 parent 0ed7618 commit cf81d98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion service/models/operations/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Calibrate(OperationRequest):
model_config_id: str = Field(..., example="c1cd941a-047d-11ee-be56")
dataset: Dataset = None
timespan: Optional[Timespan] = None
policy_intervention_id: str = Field(..., example="ba8da8d4-047d-11ee-be56")
policy_intervention_id: str = Field(None, example="ba8da8d4-047d-11ee-be56")
extra: CalibrateExtra = Field(
None,
description="optional extra system specific arguments for advanced use cases",
Expand Down
2 changes: 1 addition & 1 deletion service/models/operations/simulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Simulate(OperationRequest):
pyciemss_lib_function: ClassVar[str] = "sample"
model_config_id: str = Field(..., example="ba8da8d4-047d-11ee-be56")
timespan: Timespan = Timespan(start=0, end=90)
policy_intervention_id: str = Field(..., example="ba8da8d4-047d-11ee-be56")
policy_intervention_id: str = Field(None, example="ba8da8d4-047d-11ee-be56")
step_size: float = 1.0
extra: SimulateExtra = Field(
None,
Expand Down

0 comments on commit cf81d98

Please sign in to comment.