Skip to content

Commit

Permalink
update curtailment_value_type naming
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrunik committed Aug 28, 2024
1 parent b4c67bd commit 07af463
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hopp/simulation/technologies/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def simulate_grid_connection(
"""
if self.site.follow_desired_schedule:
# Desired schedule sets the upper bound of the system output, any over generation is curtailed
if self.site.curtailment_value_type == "grid":
if self.site.curtailment_value_type == "interconnect_kw":
lifetime_schedule: NDArrayFloat = np.tile([self.interconnect_kw],
len(total_gen))
desired_schedule = np.tile(
Expand Down
5 changes: 3 additions & 2 deletions hopp/simulation/technologies/sites/site_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ class SiteInfo(BaseClass):
hub_height: Turbine hub height for resource download in meters. Defaults to 97.0.
capacity_hours: Boolean list indicating hours for capacity payments. Defaults to [].
desired_schedule: Absolute desired load profile in MWe. Defaults to [].
curtailment_value_type: whether to curtail power above grid interconnection limit or desired schedule
curtailment_value_type: whether to curtail power above grid interconnection limit or desired schedule.
Options "interconnect_kw" or "desired_schedule". Defaults to "interconnect_kw".
solar: Whether to set solar data for this site. Defaults to True.
wind: Whether to set wind data for this site. Defaults to True.
wave: Whether to set wave data for this site. Defaults to True.
Expand All @@ -67,7 +68,7 @@ class SiteInfo(BaseClass):
hub_height: hopp_float_type = field(default=97., converter=hopp_float_type)
capacity_hours: NDArray = field(default=[], converter=converter(bool))
desired_schedule: NDArrayFloat = field(default=[], converter=converter())
curtailment_value_type: str = field(default="grid", validator=contains(["grid", "desired_schedule"]))
curtailment_value_type: str = field(default="interconnect_kw", validator=contains(["interconnect_kw", "desired_schedule"]))

solar: bool = field(default=True)
wind: bool = field(default=True)
Expand Down

0 comments on commit 07af463

Please sign in to comment.