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

Expose Run.is_default in facade #153

Open
wants to merge 2 commits into
base: enh/remove-superfluous-ellipses
Choose a base branch
from

Conversation

glatterf42
Copy link
Member

Working on iiasa/ixmp#552, I realized that ixmp4.core.Run should expose its is_default value, which is already present in run._model.
This PR exposes the value by using a function (and tests that calling set_as_default() and unset_as_default() update is_default()). It could also be a property, though it's more dynamic than e.g. Run.id or Run.model, that's why I opted for a function: to indicate that this value needs to be retrieved when it's requested.

@glatterf42 glatterf42 added the enhancement New feature or request label Jan 24, 2025
@glatterf42 glatterf42 requested a review from meksor January 24, 2025 12:57
@glatterf42 glatterf42 self-assigned this Jan 24, 2025
Copy link

codecov bot commented Jan 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.4%. Comparing base (3cc17d2) to head (71c0e69).

Additional details and impacted files
@@                       Coverage Diff                       @@
##           enh/remove-superfluous-ellipses    #153   +/-   ##
===============================================================
  Coverage                             88.4%   88.4%           
===============================================================
  Files                                  231     231           
  Lines                                 8099    8103    +4     
===============================================================
+ Hits                                  7165    7169    +4     
  Misses                                 934     934           
Files with missing lines Coverage Δ
ixmp4/core/run.py 98.1% <100.0%> (+<0.1%) ⬆️

@glatterf42 glatterf42 force-pushed the enh/run-clone branch 3 times, most recently from c0d84c8 to ed0a184 Compare January 30, 2025 10:43
@glatterf42 glatterf42 changed the base branch from enh/run-clone to enh/remove-superfluous-ellipses January 30, 2025 11:00
@glatterf42 glatterf42 force-pushed the enh/expose-run-is-default branch from 78a5825 to 71c0e69 Compare January 30, 2025 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant