singularity-energy / open-grid-emissions

Tools for producing high-quality hourly generation and emissions data for U.S. electric grids
MIT License
67 stars 4 forks source link

Make PUDL logging show up, and set up logging in OGE #285

Closed miloknowles closed 1 year ago

miloknowles commented 1 year ago

This PR configures logging in logging_util.py such that:

Here's an example of running the data pipeline with the new logging system:

Screen Shot 2023-02-21 at 5 02 21 PM

Note: Unfortunately, if you just do logger.info(df), the header won't line up well with the data. So I replaced all of the dataframe printouts to be logger.info("\n" + df.to_string()), which will make everything look nice.

grgmiller commented 1 year ago

See https://github.com/singularity-energy/open-grid-emissions/pull/286, https://github.com/singularity-energy/open-grid-emissions/pull/289, and https://github.com/singularity-energy/open-grid-emissions/pull/291 for additional tweaks to this PR