Closed khaeru closed 4 years ago
:exclamation: No coverage uploaded for pull request base (
master@e71e761
). Click here to learn what that means. The diff coverage is82.55%
.
@@ Coverage Diff @@
## master #21 +/- ##
=========================================
Coverage ? 50.03%
=========================================
Files ? 32
Lines ? 1425
Branches ? 0
=========================================
Hits ? 713
Misses ? 712
Partials ? 0
Impacted Files | Coverage Δ | |
---|---|---|
item/tests/test_cli.py | 0.00% <ø> (ø) |
|
item/tests/test_historical.py | 0.00% <0.00%> (ø) |
|
item/tests/test_openkapsarc.py | 0.00% <0.00%> (ø) |
|
item/historical/cli.py | 61.90% <33.33%> (ø) |
|
item/remote/openkapsarc.py | 89.58% <80.00%> (ø) |
|
item/historical/__init__.py | 35.71% <95.65%> (ø) |
|
item/cli.py | 86.11% <100.00%> (ø) |
|
item/common.py | 85.71% <100.00%> (ø) |
|
item/remote/__init__.py | 100.00% <100.00%> (ø) |
|
item/remote/cli.py | 100.00% <100.00%> (ø) |
|
... and 33 more |
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 e71e761...352741f. Read the comment docs.
As of #18, the input data for the historical database are stored in the transportenergy/metadata repostory. For the historical database to actually be reproducible, these files must be retrieved automatically, from original, public sources.
This PR adds code to download the data which is an input for the processing scripts. It does this for sources that can be read using either SDMX or the OpenKAPSARC API, i.e. datasets T001–T024, excluding T004. The number of lines (= observations, since these files are all in long format):
This functionality must eventually be expanded to cover all data sources.
Supersedes #19.