Skip to content

Commit

Permalink
little fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBelthle committed Feb 13, 2025
1 parent 64228e9 commit 4a2fe4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/antares/craft/model/area.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class AreaPropertiesUpdate:
other_dispatch_power: Optional[bool] = None
filter_synthesis: Optional[set[FilterOption]] = None
filter_by_year: Optional[set[FilterOption]] = None
adequacy_patch_mode: AdequacyPatchMode = AdequacyPatchMode.OUTSIDE
adequacy_patch_mode: Optional[AdequacyPatchMode] = None
spread_unsupplied_energy_cost: Optional[float] = None
spread_spilled_energy_cost: Optional[float] = None

Expand Down
2 changes: 1 addition & 1 deletion src/antares/craft/service/local_services/models/area.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class AreaPropertiesLocal(LocalBaseModel):
@staticmethod
def from_user_model(user_class: AreaPropertiesType) -> "AreaPropertiesLocal":
args = {
"adequacy_patch": {"adequacy_patch_mode": user_class.adequacy_patch_mode.value},
"adequacy_patch": {"adequacy_patch_mode": user_class.adequacy_patch_mode},
"filtering": {
"filter_synthesis": user_class.filter_synthesis,
"filter_year_by_year": user_class.filter_by_year,
Expand Down

0 comments on commit 4a2fe4d

Please sign in to comment.