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

Add option to (top-level) filter `meta` by model and scenario #71

Closed danielhuppmann closed 7 months ago

danielhuppmann commented 7 months ago

As I wrote in #66, I believe that it is more intuitive to filter like

platform.meta.tabulate(run={default_only=True}, model={"name": "Model 1"})

instead of (the multi-nested)

platform.meta.tabulate(run={default_only=True, model={"name": "Model 1"}))

because 1. model and scenario names are part of the Model and Scenario tables (not Run) and 2. because it's less complex.

This PR adds the ModelFiler and ScenarioFilter to the RunMetaEntryFilter. The warning about cartesian products was solved by #69 (it seems).

Note that this PR is directed into #69.