Skip to content

Commit

Permalink
feat: add overrides to substation LINES filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
danielolsen committed Mar 30, 2022
1 parent d5e3e11 commit 6641a32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions prereise/gather/griddata/hifld/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,8 @@
},
]

substations_lines_filter_override = {301995}

seams_substations = {
"east_west": {
202364, # 'LAMAR HVDC TIE'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,7 @@ def build_transmission(method="line2sub", **kwargs):
hifld_zones = get_zone(os.path.join(hifld_data_dir, "zone.csv")) # noqa: F841

# Filter substations based on their `LINES` attribute, check for location dupes
hifld_substations.loc[const.substations_lines_filter_override, "LINES"] = None
substations = filter_substations_with_zero_lines(hifld_substations)
check_for_location_conflicts(substations)
# Append the proxy substations to the source data
Expand Down

0 comments on commit 6641a32

Please sign in to comment.