-
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1125 from catalyst-cooperative/dev
Potential PUDL v0.4.0 release
- Loading branch information
Showing
74 changed files
with
6,830 additions
and
2,069 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,6 @@ updates: | |
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
target-branch: "dev" | ||
schedule: | ||
interval: "daily" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
cff-version: 1.1.0 | ||
message: "If you use PUDL, please cite it as indicated below." | ||
authors: | ||
- family-names: Selvans | ||
given-names: Zane | ||
orcid: https://orcid.org/0000-0002-9961-7208 | ||
- family-names: Gosnell | ||
given-names: Christina | ||
- family-names: Winter | ||
given-names: Steven | ||
- family-names: Dunkle Werner | ||
given-names: Karl | ||
orcid: https://orcid.org/0000-0003-0523-7309 | ||
- family-names: Shivley | ||
given-names: Greg | ||
orcid: https://orcid.org/0000-0002-8947-694X | ||
title: "The Public Utility Data Liberation (PUDL) Project" | ||
version: 0.3.2 | ||
doi: 10.5281/zenodo.3404014 | ||
date-released: 2020-02-17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/bin/sh | ||
# A script to compile a Dockerized data release based on a user's local PUDL | ||
# data environment. | ||
|
||
# Name of the directory to create the data release archive in | ||
RELEASE_DIR=pudl-v0.4.0-2021-07-15 | ||
# The PUDL working directory where we'll find the data to archive: | ||
PUDL_IN=$HOME/code/catalyst/pudl-work | ||
# Reference to an existing Docker image to pull | ||
DOCKER_TAG="2021.03.27" | ||
|
||
echo "Started:" `date` | ||
# Start with a clean slate: | ||
rm -rf $RELEASE_DIR | ||
mkdir -p $RELEASE_DIR | ||
# The release container / environment is based on the pudl-examples repo: | ||
git clone --depth 1 [email protected]:catalyst-cooperative/pudl-examples.git $RELEASE_DIR | ||
rm -rf $RELEASE_DIR/.git* | ||
# These directories are where the data will go. They're integrated with the | ||
# Docker container that's defined in the pudl-examples repo: | ||
mkdir -p $RELEASE_DIR/pudl_data | ||
mkdir -p $RELEASE_DIR/user_data | ||
|
||
# Freeze the version of the Docker container: | ||
cat $RELEASE_DIR/docker-compose.yml | sed -e "s/pudl-jupyter:latest/pudl-jupyter:$DOCKER_TAG/" > $RELEASE_DIR/new-docker-compose.yml | ||
mv $RELEASE_DIR/new-docker-compose.yml $RELEASE_DIR/docker-compose.yml | ||
# Set up a skeleton PUDL environment in the release dir: | ||
pudl_setup $RELEASE_DIR/pudl_data | ||
|
||
# These are probably outdated now... see if they fail. | ||
rm -rf $RELEASE_DIR/pudl_data/environment.yml | ||
rm -rf $RELEASE_DIR/pudl_data/notebook | ||
|
||
# Copy over all of the pre-processed data | ||
echo "Copying SQLite databases..." | ||
cp -v $PUDL_IN/sqlite/ferc1.sqlite $RELEASE_DIR/pudl_data/sqlite/ | ||
cp -v $PUDL_IN/sqlite/pudl.sqlite $RELEASE_DIR/pudl_data/sqlite/ | ||
cp -v $PUDL_IN/sqlite/censusdp1tract.sqlite $RELEASE_DIR/pudl_data/sqlite/ | ||
echo "Copying Parquet datasets..." | ||
cp -r $PUDL_IN/parquet/epacems $RELEASE_DIR/pudl_data/parquet/ | ||
|
||
# Save the Docker image as a tarball so it can be archived with the data: | ||
docker save catalystcoop/pudl-jupyter:$DOCKER_TAG -o $RELEASE_DIR/pudl-jupyter.tar | ||
|
||
# List the high-level contents of the archive so we can see what it contains: | ||
find $RELEASE_DIR -maxdepth 3 | ||
|
||
# Create the archive | ||
tar -czf $RELEASE_DIR.tgz $RELEASE_DIR | ||
|
||
echo "Finished:" `date` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.. _data-dictionaries: | ||
|
||
Data Dictionaries | ||
================= | ||
|
||
.. toctree:: | ||
:caption: Data Processed & Cleaned by PUDL | ||
:maxdepth: 1 | ||
|
||
pudl_db | ||
|
||
.. toctree:: | ||
:caption: Raw, Unprocessed Data | ||
:maxdepth: 1 | ||
|
||
ferc1_db |
Oops, something went wrong.