jdechalendar / gridemissions

Tools for power sector emissions tracking
MIT License
36 stars 6 forks source link

EIA API v2 #12

Closed jdechalendar closed 1 year ago

jdechalendar commented 1 year ago

Summary of updates

Detailed updates

commit 8712da61be4a01c309e78d744300099f79e751fc
Author: Jacques de Chalendar <jdechalendar@stanford.edu>
Date:   Tue Jul 18 18:08:32 2023 -0700

    cleaners and emissions: Migrate to EIA API v2

    * New cleaners BasicCleaner, RollingCleaner, CvxCleaner use GraphData

    * Snapshot tests in test_workflows

    * Sample output in test/data

    * New class EmissionsCalc uses GraphData and is compatible with the v2
      API

    * viz.d3map.create_graph is now compatible with the v2 API

    * viz.d3map.create_graph now uses local data stored in git repo

    * Updated gridemissions.workflows to be compatible with the v2 API

commit 998209d96518723b2cbdb3495d79bbbdd8a1d70a
Author: Jacques de Chalendar <jdechalendar@stanford.edu>
Date:   Tue Jul 25 10:48:12 2023 -0700

    GraphData.check_* updates

    * now return booleans

    * bugfix in GraphData.check_generation__by source

    * use np.isclose for comparing numbers

commit d7caab308e4b90d7d4875a4f819ae67b7fb95a61
Author: Jacques de Chalendar <jdechalendar@stanford.edu>
Date:   Mon Jul 24 19:34:28 2023 -0700

    bugfix(GraphData): edge cases for check_nans

commit 20dc15fac6af4767121bbfaa8e39b698c4abeacf
Author: Jacques de Chalendar <jdechalendar@stanford.edu>
Date:   Tue Jul 18 18:11:59 2023 -0700

    GraphData: Migrate to EIA API v2

    * Generation by source uses keyword FUEL instead of SRC

    * Updated tests

    * New snapshot tests in test_graphdata2.py serves to check metadata for the dataset at
      different dates

commit bc6fa4f4206ef2f0a0a19678661d8756c3b50b1f
Author: Jacques de Chalendar <jdechalendar@stanford.edu>
Date:   Fri Jul 14 17:26:54 2023 -0700

    EIA API v2

    * New class EIASession

    * New class BaseUrlTimeoutSession

    * New function scrape is main entry point to simple data pulls

    * Data organization now more standardized via get_key

    * Test suite includes snapshot tests that should be run with an API KEY

    * Data samples are stored in test/data and accessible via
      test/eia_samples.py

    * Snapshot data are stored in test/__snapshots__