calliope-project / calliope

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

Feature: public methods to interface with new backend model instance #471

Closed brynpickering closed 11 months ago

brynpickering commented 1 year ago

Fixes issue #429

Summary of changes in this pull request:

General restructuring:

New methods:

Reviewer checklist:

codecov[bot] commented 1 year ago

Codecov Report

Merging #471 (210041e) into main (cbed4c8) will decrease coverage by 2.87%. Report is 1 commits behind head on main. The diff coverage is 95.59%.

:exclamation: Current head 210041e differs from pull request most recent head 4069505. Consider uploading reports for the commit 4069505 to get more accurate results

@@            Coverage Diff             @@
##             main     #471      +/-   ##
==========================================
- Coverage   94.98%   92.12%   -2.87%     
==========================================
  Files          31       32       +1     
  Lines        3890     3975      +85     
  Branches        0      946     +946     
==========================================
- Hits         3695     3662      -33     
- Misses        195      196       +1     
- Partials        0      117     +117     
Files Coverage Δ
src/calliope/__init__.py 100.00% <ø> (ø)
src/calliope/_version.py 100.00% <ø> (ø)
src/calliope/backend/helper_functions.py 99.35% <ø> (ø)
src/calliope/backend/where_parser.py 98.43% <ø> (ø)
src/calliope/cli.py 81.67% <100.00%> (ø)
src/calliope/core/__init__.py 100.00% <ø> (ø)
src/calliope/core/attrdict.py 99.50% <ø> (ø)
src/calliope/core/io.py 89.47% <ø> (ø)
src/calliope/core/model.py 93.23% <100.00%> (ø)
src/calliope/core/util/generate_runs.py 87.09% <ø> (ø)
... and 22 more