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

Add indexed_by= arg to Scenario.par_list() etc. #402

Closed
khaeru opened this issue Feb 25, 2021 · 1 comment · Fixed by #500
Closed

Add indexed_by= arg to Scenario.par_list() etc. #402

khaeru opened this issue Feb 25, 2021 · 1 comment · Fixed by #500
Assignees
Labels
enh New features & functionality
Milestone

Comments

@khaeru
Copy link
Member

khaeru commented Feb 25, 2021

message_data has a utility method iter_parameters("node") that returns the names of all ixmp parameters indexed by (for example) the set "node".

  • Add to ixmp.Scenario.par_list() an optional argument indexed_by= that provides this feature.
  • Enhance Scenario.set_list() etc. in the same way.
  • (Extra) Add a more generic method like Scenario.list_items() that returns items of type set, par, equ, and/or var according to an argument.
@LauWien
Copy link
Contributor

LauWien commented Aug 17, 2021

The utility method iter_parameters() got moved upstream from message_data to message-ix-models by commit iiasa/message-ix-models@4d35702.

@khaeru khaeru added this to the 3.8 milestone Nov 21, 2023
@khaeru khaeru self-assigned this Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enh New features & functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants