Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework math handling #639

Merged
merged 25 commits into from
Sep 30, 2024

Merge branch 'main' into rework-math

d923a4a
Select commit
Loading
Failed to load commit list.
Merged

Rework math handling #639

Merge branch 'main' into rework-math
d923a4a
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project failed Sep 30, 2024 in 0s

95.95% (-0.04%) compared to 99e5211

View this Pull Request on Codecov

95.95% (-0.04%) compared to 99e5211

Details

Codecov Report

Attention: Patch coverage is 94.46809% with 13 lines in your changes missing coverage. Please review.

Project coverage is 95.95%. Comparing base (99e5211) to head (d923a4a).

Files with missing lines Patch % Lines
src/calliope/preprocess/scenarios.py 86.66% 4 Missing ⚠️
src/calliope/postprocess/math_documentation.py 90.32% 1 Missing and 2 partials ⚠️
src/calliope/util/tools.py 66.66% 1 Missing and 1 partial ⚠️
src/calliope/backend/gurobi_backend_model.py 80.00% 0 Missing and 1 partial ⚠️
src/calliope/backend/latex_backend_model.py 80.00% 0 Missing and 1 partial ⚠️
src/calliope/backend/pyomo_backend_model.py 83.33% 0 Missing and 1 partial ⚠️
src/calliope/model.py 96.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #639      +/-   ##
==========================================
- Coverage   95.98%   95.95%   -0.04%     
==========================================
  Files          26       29       +3     
  Lines        3985     4025      +40     
  Branches      838      775      -63     
==========================================
+ Hits         3825     3862      +37     
- Misses         70       72       +2     
- Partials       90       91       +1     
Files with missing lines Coverage Δ
src/calliope/attrdict.py 96.48% <100.00%> (ø)
src/calliope/backend/__init__.py 100.00% <100.00%> (ø)
src/calliope/backend/backend_model.py 97.98% <100.00%> (+0.01%) ⬆️
src/calliope/backend/expression_parser.py 93.75% <100.00%> (+0.01%) ⬆️
src/calliope/backend/parsing.py 96.99% <ø> (ø)
src/calliope/io.py 96.80% <100.00%> (-0.04%) ⬇️
src/calliope/preprocess/__init__.py 100.00% <100.00%> (ø)
src/calliope/preprocess/model_math.py 100.00% <100.00%> (ø)
src/calliope/preprocess/time.py 94.05% <100.00%> (ø)
src/calliope/backend/gurobi_backend_model.py 95.66% <80.00%> (ø)
... and 6 more