NREL-reV 0.8.7__py3-none-any.whl → 0.8.9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {NREL_reV-0.8.7.dist-info → NREL_reV-0.8.9.dist-info}/METADATA +12 -10
- {NREL_reV-0.8.7.dist-info → NREL_reV-0.8.9.dist-info}/RECORD +38 -38
- {NREL_reV-0.8.7.dist-info → NREL_reV-0.8.9.dist-info}/WHEEL +1 -1
- reV/SAM/SAM.py +182 -133
- reV/SAM/econ.py +18 -14
- reV/SAM/generation.py +608 -419
- reV/SAM/windbos.py +93 -79
- reV/bespoke/bespoke.py +690 -445
- reV/bespoke/place_turbines.py +6 -6
- reV/config/project_points.py +220 -140
- reV/econ/econ.py +165 -113
- reV/econ/economies_of_scale.py +57 -34
- reV/generation/base.py +310 -183
- reV/generation/generation.py +298 -190
- reV/handlers/exclusions.py +16 -15
- reV/handlers/multi_year.py +12 -9
- reV/handlers/outputs.py +6 -5
- reV/hybrids/hybrid_methods.py +28 -30
- reV/hybrids/hybrids.py +304 -188
- reV/nrwal/nrwal.py +262 -168
- reV/qa_qc/cli_qa_qc.py +14 -10
- reV/qa_qc/qa_qc.py +217 -119
- reV/qa_qc/summary.py +228 -146
- reV/rep_profiles/rep_profiles.py +349 -230
- reV/supply_curve/aggregation.py +349 -188
- reV/supply_curve/competitive_wind_farms.py +90 -48
- reV/supply_curve/exclusions.py +138 -85
- reV/supply_curve/extent.py +75 -50
- reV/supply_curve/points.py +536 -309
- reV/supply_curve/sc_aggregation.py +366 -225
- reV/supply_curve/supply_curve.py +505 -308
- reV/supply_curve/tech_mapping.py +144 -82
- reV/utilities/__init__.py +199 -16
- reV/utilities/pytest_utils.py +8 -4
- reV/version.py +1 -1
- {NREL_reV-0.8.7.dist-info → NREL_reV-0.8.9.dist-info}/LICENSE +0 -0
- {NREL_reV-0.8.7.dist-info → NREL_reV-0.8.9.dist-info}/entry_points.txt +0 -0
- {NREL_reV-0.8.7.dist-info → NREL_reV-0.8.9.dist-info}/top_level.txt +0 -0
reV/bespoke/place_turbines.py
CHANGED
@@ -4,11 +4,10 @@
|
|
4
4
|
place turbines for bespoke wind plants
|
5
5
|
"""
|
6
6
|
import numpy as np
|
7
|
+
from shapely.geometry import MultiPoint, MultiPolygon, Point, Polygon
|
7
8
|
|
8
|
-
from shapely.geometry import Point, Polygon, MultiPolygon, MultiPoint
|
9
|
-
|
10
|
-
from reV.bespoke.pack_turbs import PackTurbines
|
11
9
|
from reV.bespoke.gradient_free import GeneticAlgorithm
|
10
|
+
from reV.bespoke.pack_turbs import PackTurbines
|
12
11
|
from reV.utilities.exceptions import WhileLoopPackingError
|
13
12
|
|
14
13
|
|
@@ -190,7 +189,7 @@ class PlaceTurbines:
|
|
190
189
|
self.packing_polygons = MultiPolygon([])
|
191
190
|
|
192
191
|
def initialize_packing(self):
|
193
|
-
"""
|
192
|
+
"""Run the turbine packing algorithm (maximizing plant capacity) to
|
194
193
|
define potential turbine locations that will be used as design
|
195
194
|
variables in the gentic algorithm.
|
196
195
|
"""
|
@@ -364,7 +363,7 @@ class PlaceTurbines:
|
|
364
363
|
def fixed_charge_rate(self):
|
365
364
|
"""Fixed charge rate if input to the SAM WindPowerPD object, None if
|
366
365
|
not found in inputs."""
|
367
|
-
return self.wind_plant.sam_sys_inputs.get(
|
366
|
+
return self.wind_plant.sam_sys_inputs.get("fixed_charge_rate", None)
|
368
367
|
|
369
368
|
@property
|
370
369
|
@none_until_optimized
|
@@ -395,7 +394,8 @@ class PlaceTurbines:
|
|
395
394
|
def convex_hull(self):
|
396
395
|
"""This is the convex hull of the turbine locations"""
|
397
396
|
turbines = MultiPoint([Point(x, y)
|
398
|
-
for x,y in zip(self.turbine_x,
|
397
|
+
for x, y in zip(self.turbine_x,
|
398
|
+
self.turbine_y)])
|
399
399
|
return turbines.convex_hull
|
400
400
|
|
401
401
|
@property
|