calliope-project / calliope

A multi-scale energy systems modelling framework
https://www.callio.pe
Apache License 2.0
287 stars 93 forks source link

source_max etc. -> source_use_max etc.; merge purchased and units #533

Closed brynpickering closed 8 months ago

brynpickering commented 9 months ago

Fixes #451

Summary of changes in this pull request:

Reviewer checklist:

codecov[bot] commented 9 months ago

Codecov Report

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

Comparison is base (4e70191) 95.00% compared to head (c7cf81f) 95.14%. Report is 3 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #533 +/- ## ========================================== + Coverage 95.00% 95.14% +0.14% ========================================== Files 24 24 Lines 3301 3298 -3 Branches 705 651 -54 ========================================== + Hits 3136 3138 +2 + Misses 96 92 -4 + Partials 69 68 -1 ``` | [Files](https://app.codecov.io/gh/calliope-project/calliope/pull/533?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=calliope-project) | Coverage Δ | | |---|---|---| | [src/calliope/backend/backend\_model.py](https://app.codecov.io/gh/calliope-project/calliope/pull/533?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=calliope-project#diff-c3JjL2NhbGxpb3BlL2JhY2tlbmQvYmFja2VuZF9tb2RlbC5weQ==) | `97.65% <100.00%> (+2.23%)` | :arrow_up: | | [src/calliope/backend/expression\_parser.py](https://app.codecov.io/gh/calliope-project/calliope/pull/533?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=calliope-project#diff-c3JjL2NhbGxpb3BlL2JhY2tlbmQvZXhwcmVzc2lvbl9wYXJzZXIucHk=) | `97.14% <ø> (ø)` | | | [src/calliope/preprocess/time.py](https://app.codecov.io/gh/calliope-project/calliope/pull/533?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=calliope-project#diff-c3JjL2NhbGxpb3BlL3ByZXByb2Nlc3MvdGltZS5weQ==) | `88.57% <ø> (ø)` | | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/calliope-project/calliope/pull/533/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=calliope-project)