transportenergy / database

Tools for accessing and maintaining the iTEM model & historical databases
https://transportenergy.rtfd.io
GNU General Public License v3.0
24 stars 8 forks source link

Automate common data processing steps #25

Closed khaeru closed 4 years ago

khaeru commented 4 years ago

This PR contains an example of how to address #24. The proof-of-concept in item.historical.scripts.T001, a pure-Python module that performs the same steps as T001.ipynb, while being more concise, faster, and making use of re-usable code in item.historical.process().

It also:

codecov[bot] commented 4 years ago

Codecov Report

Merging #25 into master will increase coverage by 1.41%. The diff coverage is 49.70%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #25      +/-   ##
==========================================
+ Coverage   49.15%   50.57%   +1.41%     
==========================================
  Files          34       37       +3     
  Lines        1483     1568      +85     
==========================================
+ Hits          729      793      +64     
- Misses        754      775      +21     
Impacted Files Coverage Δ
item/historical/legacy.py 0.00% <0.00%> (ø)
item/tests/test_historical.py 0.00% <0.00%> (ø)
item/historical/__init__.py 91.66% <89.65%> (+54.66%) :arrow_up:
item/historical/cli.py 66.66% <100.00%> (+1.14%) :arrow_up:
item/historical/scripts/T001.py 100.00% <100.00%> (ø)
item/historical/scripts/util/managers/dataframe.py 96.10% <100.00%> (+0.05%) :arrow_up:
item/utils.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update facd51a...d4b746d. Read the comment docs.