Skip to content

Commit

Permalink
Merge branch 'explode_ferc1' into explode_tree_fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zaneselvans committed Sep 12, 2023
2 parents 7b51b3e + 0556db0 commit 19d172e
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ repos:
# Formatters: hooks that re-write Python & documentation files
####################################################################################
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.287
rev: v0.0.288
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
33 changes: 33 additions & 0 deletions src/pudl/metadata/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,39 @@
"government",
"federal",
],
"msha": [
"msha",
"mshamines",
"mine safety and health administration",
"mines",
"mining",
"coal",
"metal",
"department of labor",
],
"phmsa": [
"phmsa",
"phmsagas",
"pipelines and hazardous materials safety administration",
"pipelines",
"natural gas",
"transmission",
"distribution",
"gathering",
"liquified natural gas",
"lng",
"underground natural gas storage",
"department of transportation",
"us dot",
],
"eia_water": [
"eia thermoelectric cooling water",
"eia waterthermoelectric",
"cooling water",
"water usage",
"water energy nexus",
"energy water nexus",
],
}

XBRL_TABLES = [
Expand Down
19 changes: 17 additions & 2 deletions src/pudl/metadata/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,10 @@
[
"eia176",
"form 176",
"natural gas",
]
+ KEYWORDS["eia"]
+ KEYWORDS["us_govt"]
+ KEYWORDS["fuels"]
+ KEYWORDS["environment"]
)
),
"license_raw": LICENSES["us-govt"],
Expand Down Expand Up @@ -262,6 +261,9 @@
"Monthly cooling water usage by generator and boiler. Data "
"collected in conjunction with the EIA-860 and EIA-923."
),
"keywords": sorted(
set(KEYWORDS["eia"] + KEYWORDS["us_govt"] + KEYWORDS["eia_water"])
),
"license_raw": LICENSES["us-govt"],
"license_pudl": LICENSES["cc-by-4.0"],
},
Expand Down Expand Up @@ -523,6 +525,17 @@
"as well as transaction information for short-term and long-term "
"market-based power sales and cost-based power sales."
),
"keywords": sorted(
set(
[
"ferceqr",
"electric quarterly report",
]
+ KEYWORDS["ferc"]
+ KEYWORDS["us_govt"]
+ KEYWORDS["electricity"]
)
),
"license_raw": LICENSES["us-govt"],
"license_pudl": LICENSES["cc-by-4.0"],
},
Expand All @@ -535,6 +548,7 @@
"mine (Active, Abandoned, NonProducing, etc.), the current owner and "
"operating company, commodity codes and physical attributes of the mine."
),
"keywords": sorted(set(KEYWORDS["msha"] + KEYWORDS["us_govt"])),
"license_raw": LICENSES["us-govt"],
"license_pudl": LICENSES["cc-by-4.0"],
},
Expand All @@ -548,6 +562,7 @@
"pipeline mileage, facilities, commodities transported, miles by material, "
"and installation dates."
),
"keywords": sorted(set(KEYWORDS["phmsa"] + KEYWORDS["us_govt"])),
"license_raw": LICENSES["us-govt"],
"license_pudl": LICENSES["cc-by-4.0"],
},
Expand Down

0 comments on commit 19d172e

Please sign in to comment.