transport-data / tools

Transport Data Commons tools
https://docs.transport-data.org
GNU General Public License v3.0
2 stars 0 forks source link

Create IAMC ‘variable’ codelists #10

Closed khaeru closed 11 months ago

khaeru commented 11 months ago

This PR adds a utility function that creates an SDMX Codelist for the ‘VARIABLE’ dimension of an IAMC-like structure from an existing data structure definition (DSD).

Partly addresses #2.

How to review

codecov-commenter commented 11 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 89.15%. Comparing base (191eab7) to head (0100983). Report is 102 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #10 +/- ## ========================================== + Coverage 88.40% 89.15% +0.75% ========================================== Files 25 26 +1 Lines 750 802 +52 ========================================== + Hits 663 715 +52 Misses 87 87 ``` | [Files with missing lines](https://app.codecov.io/gh/transport-data/tools/pull/10?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=transport-data) | Coverage Δ | | |---|---|---| | [transport\_data/config.py](https://app.codecov.io/gh/transport-data/tools/pull/10?src=pr&el=tree&filepath=transport_data%2Fconfig.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=transport-data#diff-dHJhbnNwb3J0X2RhdGEvY29uZmlnLnB5) | `76.47% <ø> (ø)` | | | [transport\_data/iamc/\_\_init\_\_.py](https://app.codecov.io/gh/transport-data/tools/pull/10?src=pr&el=tree&filepath=transport_data%2Fiamc%2F__init__.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=transport-data#diff-dHJhbnNwb3J0X2RhdGEvaWFtYy9fX2luaXRfXy5weQ==) | `97.67% <100.00%> (+0.27%)` | :arrow_up: | | [transport\_data/iamc/cli.py](https://app.codecov.io/gh/transport-data/tools/pull/10?src=pr&el=tree&filepath=transport_data%2Fiamc%2Fcli.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=transport-data#diff-dHJhbnNwb3J0X2RhdGEvaWFtYy9jbGkucHk=) | `100.00% <100.00%> (ø)` | | | [transport\_data/testing.py](https://app.codecov.io/gh/transport-data/tools/pull/10?src=pr&el=tree&filepath=transport_data%2Ftesting.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=transport-data#diff-dHJhbnNwb3J0X2RhdGEvdGVzdGluZy5weQ==) | `100.00% <100.00%> (ø)` | | | [transport\_data/tests/test\_iamc.py](https://app.codecov.io/gh/transport-data/tools/pull/10?src=pr&el=tree&filepath=transport_data%2Ftests%2Ftest_iamc.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=transport-data#diff-dHJhbnNwb3J0X2RhdGEvdGVzdHMvdGVzdF9pYW1jLnB5) | `100.00% <100.00%> (ø)` | |