NREL-reV 0.8.7__py3-none-any.whl → 0.9.0__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.9.0.dist-info}/METADATA +13 -10
- {NREL_reV-0.8.7.dist-info → NREL_reV-0.9.0.dist-info}/RECORD +43 -43
- {NREL_reV-0.8.7.dist-info → NREL_reV-0.9.0.dist-info}/WHEEL +1 -1
- reV/SAM/SAM.py +217 -133
- reV/SAM/econ.py +18 -14
- reV/SAM/generation.py +611 -422
- reV/SAM/windbos.py +93 -79
- reV/bespoke/bespoke.py +681 -377
- reV/bespoke/cli_bespoke.py +2 -0
- reV/bespoke/place_turbines.py +187 -43
- reV/config/output_request.py +2 -1
- reV/config/project_points.py +218 -140
- reV/econ/econ.py +166 -114
- reV/econ/economies_of_scale.py +91 -45
- reV/generation/base.py +331 -184
- reV/generation/generation.py +326 -200
- reV/generation/output_attributes/lcoe_fcr_inputs.json +38 -3
- reV/handlers/__init__.py +0 -1
- reV/handlers/exclusions.py +16 -15
- reV/handlers/multi_year.py +57 -26
- reV/handlers/outputs.py +6 -5
- reV/handlers/transmission.py +44 -27
- reV/hybrids/hybrid_methods.py +30 -30
- reV/hybrids/hybrids.py +305 -189
- 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 +735 -390
- reV/supply_curve/sc_aggregation.py +357 -248
- reV/supply_curve/supply_curve.py +604 -347
- reV/supply_curve/tech_mapping.py +144 -82
- reV/utilities/__init__.py +274 -16
- reV/utilities/pytest_utils.py +8 -4
- reV/version.py +1 -1
- {NREL_reV-0.8.7.dist-info → NREL_reV-0.9.0.dist-info}/LICENSE +0 -0
- {NREL_reV-0.8.7.dist-info → NREL_reV-0.9.0.dist-info}/entry_points.txt +0 -0
- {NREL_reV-0.8.7.dist-info → NREL_reV-0.9.0.dist-info}/top_level.txt +0 -0
reV/utilities/pytest_utils.py
CHANGED
@@ -1,12 +1,15 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
"""Functions used for pytests"""
|
3
3
|
|
4
|
-
import numpy as np
|
5
4
|
import os
|
5
|
+
|
6
|
+
import numpy as np
|
6
7
|
import pandas as pd
|
7
8
|
from packaging import version
|
8
9
|
from rex.outputs import Outputs as RexOutputs
|
9
10
|
|
11
|
+
from reV.utilities import ResourceMetaField
|
12
|
+
|
10
13
|
|
11
14
|
def pd_date_range(*args, **kwargs):
|
12
15
|
"""A simple wrapper on the pd.date_range() method that handles the closed
|
@@ -89,9 +92,10 @@ def make_fake_h5_chunks(td, features, shuffle=False):
|
|
89
92
|
for i, s1 in enumerate(s_slices):
|
90
93
|
for j, s2 in enumerate(s_slices):
|
91
94
|
out_file = out_pattern.format(i=i, j=j)
|
92
|
-
meta = pd.DataFrame(
|
93
|
-
|
94
|
-
|
95
|
+
meta = pd.DataFrame(
|
96
|
+
{ResourceMetaField.LATITUDE: lat[s1, s2].flatten(),
|
97
|
+
ResourceMetaField.LONGITUDE: lon[s1, s2].flatten(),
|
98
|
+
ResourceMetaField.GID: gids[s1, s2].flatten()})
|
95
99
|
write_chunk(meta=meta, times=times, data=data[s1, s2],
|
96
100
|
features=features, out_file=out_file)
|
97
101
|
|
reV/version.py
CHANGED
File without changes
|
File without changes
|
File without changes
|