Skip to content

Commit

Permalink
Merge pull request #372 from singularity-energy/ben/crosswalk
Browse files Browse the repository at this point in the history
Update manual epa eia crosswalk reference table
  • Loading branch information
rouille authored Jun 27, 2024
2 parents 505d055 + e00c391 commit 63b0754
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/oge/data_cleaning.py
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ def assign_fuel_type_to_cems(cems, year, primary_fuel_table):
columns=["plant_id_eia", "generator_id", "energy_source_code_1"],
).drop_duplicates()
gen_fuel = add_subplant_ids_to_df(
gen_fuel, year, "generator_id", how_merge="left", validate_merge="1:1"
gen_fuel, year, "generator_id", how_merge="inner", validate_merge="1:1"
)

# make sure there are no duplicate unit entries
Expand Down
6 changes: 6 additions & 0 deletions src/oge/reference_tables/epa_eia_crosswalk_manual.csv
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,9 @@ plant_id_epa,emissions_unit_id_epa,plant_id_eia,generator_id,notes
65372,CT-1,65372,CTG-1,Matched based on generator ID
65372,CT-2,65372,CTG-2,Matched based on generator ID
65372,CT-3,65372,CTG-3,Matched based on generator ID
13213,AA-001, 55080,1,"Matched based on plant name, location and CAMD_UNIT_ID vs EIA_GENERATOR_ID"
13213,AA-002, 55080,2,"Matched based on plant name, location and CAMD_UNIT_ID vs EIA_GENERATOR_ID"
13213,AA-003, 55080,3,"Matched based on plant name, location and CAMD_UNIT_ID vs EIA_GENERATOR_ID"
13213,AA-004, 55080,4,"Matched based on plant name, location and CAMD_UNIT_ID vs EIA_GENERATOR_ID"
13213,AA-005, 55080,5,"Matched based on plant name, location and CAMD_UNIT_ID vs EIA_GENERATOR_ID"
13213,AA-006, 55080,6,"Matched based on plant name, location and CAMD_UNIT_ID vs EIA_GENERATOR_ID"

0 comments on commit 63b0754

Please sign in to comment.