@@ -1020,7 +1020,7 @@ def remove_unmapped_fuel(cems: pd.DataFrame, year: int) -> pd.DataFrame:
10201020 # calculate annual totals by unit
10211021 annual_cems = (
10221022 cems .groupby (["plant_id_eia" , "emissions_unit_id_epa" ], dropna = False )[
1023- ["gross_generation_mwh" , "steam_load_1000_lb " , "fuel_consumed_mmbtu" ]
1023+ ["gross_generation_mwh" , "steam_load_lbs " , "fuel_consumed_mmbtu" ]
10241024 ]
10251025 .sum ()
10261026 .reset_index ()
@@ -1064,7 +1064,7 @@ def remove_unmapped_fuel(cems: pd.DataFrame, year: int) -> pd.DataFrame:
10641064 fuel_only_unmapped = annual_cems [
10651065 (annual_cems ["generator_id" ].isna ())
10661066 & (annual_cems ["gross_generation_mwh" ] == 0 )
1067- & (annual_cems ["steam_load_1000_lb " ] == 0 )
1067+ & (annual_cems ["steam_load_lbs " ] == 0 )
10681068 & (annual_cems ["fuel_consumed_mmbtu" ] > 0 )
10691069 ]
10701070 if len (fuel_only_unmapped ) > 0 :
@@ -1257,7 +1257,7 @@ def identify_and_remove_steam_only_units(cems: pd.DataFrame, year: int) -> pd.Da
12571257 # calculate annual totals by unit
12581258 annual_cems = (
12591259 cems .groupby (["plant_id_eia" , "emissions_unit_id_epa" ], dropna = False )[
1260- ["gross_generation_mwh" , "steam_load_1000_lb " , "fuel_consumed_mmbtu" ]
1260+ ["gross_generation_mwh" , "steam_load_lbs " , "fuel_consumed_mmbtu" ]
12611261 ]
12621262 .sum ()
12631263 .reset_index ()
@@ -1284,7 +1284,7 @@ def identify_and_remove_steam_only_units(cems: pd.DataFrame, year: int) -> pd.Da
12841284 steam_only_unmapped = annual_cems [
12851285 (annual_cems ["generator_id" ].isna ())
12861286 & (annual_cems ["gross_generation_mwh" ] == 0 )
1287- & (annual_cems ["steam_load_1000_lb " ] > 0 )
1287+ & (annual_cems ["steam_load_lbs " ] > 0 )
12881288 & (annual_cems ["fuel_consumed_mmbtu" ] > 0 )
12891289 ]
12901290 if len (steam_only_unmapped ) > 0 :
@@ -1314,7 +1314,7 @@ def identify_and_remove_steam_only_units(cems: pd.DataFrame, year: int) -> pd.Da
13141314 # are still not entirely certain how to interpret steam data in CEMS, so its
13151315 # inclusion could result in potentially anomalous results
13161316 mapped_steam = annual_cems [
1317- (annual_cems ["steam_load_1000_lb " ] > 0 ) & (~ annual_cems ["generator_id" ].isna ())
1317+ (annual_cems ["steam_load_lbs " ] > 0 ) & (~ annual_cems ["generator_id" ].isna ())
13181318 ]
13191319 if len (mapped_steam ) > 0 :
13201320 logger .warning (
@@ -2440,7 +2440,7 @@ def aggregate_cems_to_subplant(cems):
24402440
24412441 cems_columns_to_aggregate = [
24422442 "gross_generation_mwh" ,
2443- # "steam_load_1000_lb ",
2443+ # "steam_load_lbs ",
24442444 "fuel_consumed_mmbtu" ,
24452445 "co2_mass_lb" ,
24462446 "ch4_mass_lb" ,
0 commit comments