Skip to content

Commit

Permalink
Merge pull request #561 from NREL/intl-wind
Browse files Browse the repository at this point in the history
allow international wind
  • Loading branch information
adfarth authored Feb 1, 2024
2 parents bb0716b + 42d221f commit b18b65f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ Classify the change according to the following categories:
### Patches


## Develop - 2024-01-30
### Minor Updates
#### Fixed
- Fixed Wind validation code to prevent erroring when user provides `production_factor_series` for location outside of WindToolkit bounds.
#### Changed
- Updated `reopt_version` in `ERPJob` to 0.39.1

## v3.4.0
### Minor Updates
#### Added
Expand Down
4 changes: 2 additions & 2 deletions reoptjl/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def update_pv_defaults_offgrid(self, pvmodel):
for time_series in ["production_factor_series"] + wind_resource_inputs:
self.clean_time_series("Wind", time_series)

if not all([self.models["Wind"].__getattribute__(wr) for wr in wind_resource_inputs]):
if not all([self.models["Wind"].__getattribute__(wr) for wr in wind_resource_inputs]) and not self.models["Wind"].__getattribute__("production_factor_series"):
# then no wind_resource_inputs provided, so we need to get the resource from WindToolkit
if not lat_lon_in_windtoolkit(self.models["Site"].__getattribute__("latitude"),
self.models["Site"].__getattribute__("longitude")):
Expand Down Expand Up @@ -663,5 +663,5 @@ def lat_lon_in_windtoolkit(lat, lon):
y = int(round((point[1] - origin[1]) / 2000))
y_max, x_max = (1602, 2976)
if (x < 0) or (y < 0) or (x >= x_max) or (y >= y_max):
raise ValueError("Latitude/Longitude is outside of wind resource dataset bounds.")
return None
return y, x
2 changes: 1 addition & 1 deletion resilience_stats/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def obj_create(self, bundle, **kwargs):

meta_dict = {
"run_uuid": erp_run_uuid,
"reopt_version": "0.30.0",
"reopt_version": "0.39.1",
"status": "Validating..."
}

Expand Down

0 comments on commit b18b65f

Please sign in to comment.