Skip to content

Commit dab5ab2

Browse files
committed
Set gen_dbid to "." instead of ""
1 parent 595ee5f commit dab5ab2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

switch_model/wecc/get_inputs/post_process_steps/aggregate_candidate_projects.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def main(config):
3333
assert "Hydro_NonPumped" not in agg_techs
3434
assert "Hydro_Pumped" not in agg_techs
3535

36-
print(f"\t\tAggregating on projects where gen_tech in {agg_techs}")
36+
print(f"\t\tAggregating on projects where gen_tech in {agg_techs} with capacity factors from the {cf_quantile*100}th percentile")
3737
key = "GENERATION_PROJECT"
3838

3939
#################
@@ -51,8 +51,8 @@ def main(config):
5151
projects_no_agg = df[~should_agg]
5252
df = df[should_agg]
5353

54-
# Drop the db_id column since we're creating a new project
55-
df = df.drop("gen_dbid", axis=1)
54+
# Reset the dbid since we're creating a new project
55+
df["gen_dbid"] = "."
5656

5757
# Specify the new project id (e.g. agg_Wind_CA_SGE) and save a mapping of keys to aggregate keys for later
5858
df["agg_key"] = "agg_" + df["gen_tech"] + "_" + df["gen_load_zone"]

0 commit comments

Comments
 (0)