File tree 1 file changed +6
-0
lines changed
prereise/gather/griddata/hifld
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 11
11
build_solar ,
12
12
build_wind ,
13
13
)
14
+ from prereise .gather .griddata .hifld .data_process .topology import report_bottlenecks
14
15
from prereise .gather .griddata .hifld .data_process .transmission import build_transmission
15
16
16
17
@@ -34,6 +35,7 @@ def create_csvs(
34
35
hydro_kwargs ,
35
36
solar_kwargs ,
36
37
wind_kwargs ,
38
+ zone_demand = None ,
37
39
):
38
40
"""Process HIFLD source data to CSVs compatible with PowerSimData.
39
41
@@ -45,11 +47,15 @@ def create_csvs(
45
47
:func:`prereise.gather.solardata.nsrdb.sam.retrieve_data_individual`.
46
48
:param dict wind_kwargs: keyword arguments to pass to
47
49
:func:`prereise.gather.griddata.hifld.data_process.profiles.build_wind`.
50
+ :param pandas.DataFrame zone_demand: per-zone demand profiles, used to evaluate
51
+ local transmission constraints. If None, this step will be skipped.
48
52
"""
49
53
_check_profile_kwargs (
50
54
{"hydro" : hydro_kwargs , "solar" : solar_kwargs , "wind" : wind_kwargs }
51
55
)
52
56
full_tables = create_grid (output_folder )
57
+ if zone_demand is not None :
58
+ report_bottlenecks (full_tables ["branch" ], full_tables ["bus" ], zone_demand )
53
59
create_profiles (
54
60
full_tables ["plant" ],
55
61
profile_year ,
You can’t perform that action at this time.
0 commit comments