GermanZero-de / localzero-generator-core

7 stars 3 forks source link

Cycl foot bugfix #378

Closed bgrundmann closed 8 months ago

bgrundmann commented 8 months ago

Found while preparing/testing the data update for 2021 by exchanging population file only and looking at the differences.

a) We used the wrong fact (foot instead of cycl modal split) for 2018 other_cylc_transport_capacity_pkm. Didn't matter in the end because both are 1.0, but still potential for future bug if one of the values changed.

b) when calculating t30.other_foot.change_transport_capacity_pkm we computed the change against cycl(!) instead of foot. This meant this value was just wrong.

Ready to rock

(.venv) benediktgrundmann@Benedikts-Air localzero-generator-core % python devtool.py ready_to_rock
WARNING: there is a new pyright version available (v1.1.301 -> v1.1.344).
Please install the new version or set PYRIGHT_PYTHON_FORCE_VERSION to `latest`

No configuration file found.
pyproject.toml file found at /Users/benediktgrundmann/Programming/localzero/localzero-generator-core.
Loading pyproject.toml file at /Users/benediktgrundmann/Programming/localzero/localzero-generator-core/pyproject.toml
Assuming Python platform Darwin
Auto-excluding **/node_modules
Auto-excluding **/__pycache__
Auto-excluding **/.*
Searching for source files
Found 201 source files
pyright 1.1.301
0 errors, 0 warnings, 0 informations
Completed in 2.586sec
=========================================================== test session starts ============================================================
platform darwin -- Python 3.10.12, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /Users/benediktgrundmann/Programming/localzero/localzero-generator-core
plugins: anyio-3.6.2, cov-3.0.0
collected 39 items

tests/test_devtool_commands.py ..............                                                                                        [ 35%]
tests/test_end_to_end.py ...........                                                                                                 [ 64%]
tests/test_entries.py .                                                                                                              [ 66%]
tests/test_refdata.py ....                                                                                                           [ 76%]
tests/test_tracing.py .........                                                                                                      [100%]

============================================================ 39 passed in 6.12s ============================================================
Trim Trailing Whitespace.................................................Passed
Mixed line ending........................................................Passed
Check for case conflicts.................................................Passed
Check Yaml...............................................................Passed
Check for added large files..............................................Passed
Don't commit to branch...................................................Passed
black....................................................................Passed
You are ready to rock and save the climate at 79f7840d491e148c4c482b800352e16352de8552, but don't forget to copy paste the above into your pull request