iiasa / ixmp4

A data warehouse for high-powered scenario analysis in the domain of integrated assessment of climate change and energy systems modeling
https://docs.ece.iiasa.ac.at/ixmp4
MIT License
11 stars 6 forks source link

Fix `list()` and `tabulate()` for existing optimization items with specific run-request #107

Closed glatterf42 closed 2 months ago

glatterf42 commented 3 months ago

Also while working on the GAMS transport tutorial, I discovered that all optimization items had inconsistent behavior in the facade layer: run.optimization.scalar.tabulate() would list all scalars of all runs, while ...list() would list only those of the run the scalars belong to. The latter is clearly desired, so this PR fixes the inconsistency and adds tests to confirm.

Since Parameter, Equation, and Variable have not yet landed on main, I'll include corresponding changes in their pending PRs.