Skip to content

Commit cb55d62

Browse files
committed
moving excluded regions to a parameter variable
1 parent 5e7403b commit cb55d62

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

electricitylci/generation_mix.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,15 +361,14 @@ def olcaschema_genmix(database, gen_dict, subregion=None):
361361
return generation_mix_dict
362362

363363

364-
def olcaschema_usaverage(database, gen_dict, subregion=None):
364+
def olcaschema_usaverage(database, gen_dict, subregion=None, excluded_regions = ['HIMS','HIOA','AKGD','AKMS']):
365365
if subregion is None:
366366
subregion = model_specs.regional_aggregation
367367
generation_mix_dict = {}
368368
# croppping the database according to the current fuel being considered
369369
#Not choosing the Hawaiian and Alaskan regions.
370370
us_database = create_generation_mix_process_df_from_egrid_ref_data(subregion='US')
371-
#Not choosing the Hawaiian and Alaskan regions.
372-
excluded_regions = ['HIMS','HIOA','AKGD','AKMS']
371+
#Not choosing the Hawaiian and Alaskan regions.
373372
us_database=us_database.loc[~us_database["Subregion"].isin(excluded_regions),:]
374373
df2 = us_database.groupby(['FuelCategory'])['Electricity'].agg('sum').reset_index()
375374
df2['Electricity_fuel_total'] = df2['Electricity']

0 commit comments

Comments
 (0)