Skip to content

Commit

Permalink
remove useless function
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBelthle committed Feb 14, 2025
1 parent 9a6ccd7 commit 8a57884
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/antares/craft/model/area.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import pandas as pd

from antares.craft.model.commons import FilterOption
from antares.craft.model.commons import FILTER_VALUES, FilterOption
from antares.craft.model.hydro import Hydro, HydroProperties
from antares.craft.model.renewable import RenewableCluster, RenewableClusterProperties
from antares.craft.model.st_storage import STStorage, STStorageProperties
Expand Down Expand Up @@ -65,25 +65,15 @@ class AreaPropertiesUpdate:
spread_spilled_energy_cost: Optional[float] = None


def default_filtering() -> set[FilterOption]:
return {
FilterOption.HOURLY,
FilterOption.DAILY,
FilterOption.WEEKLY,
FilterOption.MONTHLY,
FilterOption.ANNUAL,
}


@dataclass
class AreaProperties:
energy_cost_unsupplied: float = 0.0
energy_cost_spilled: float = 0.0
non_dispatch_power: bool = True
dispatch_hydro_power: bool = True
other_dispatch_power: bool = True
filter_synthesis: set[FilterOption] = field(default_factory=default_filtering)
filter_by_year: set[FilterOption] = field(default_factory=default_filtering)
filter_synthesis: set[FilterOption] = field(default_factory=lambda: FILTER_VALUES)
filter_by_year: set[FilterOption] = field(default_factory=lambda: FILTER_VALUES)
adequacy_patch_mode: AdequacyPatchMode = AdequacyPatchMode.OUTSIDE
spread_unsupplied_energy_cost: float = 0.0
spread_spilled_energy_cost: float = 0.0
Expand Down

0 comments on commit 8a57884

Please sign in to comment.