spine-tools / Spine-Database-API

Database interface to Spine generic data model
https://www.tools-for-energy-system-modelling.org/
GNU Lesser General Public License v3.0
6 stars 5 forks source link

Scenario filter: filter also non-selected scenarios, alternatives and scenario alternatives #206

Closed soininen closed 1 year ago

soininen commented 1 year ago

Currently, scenario filter filters parameter values only. It makes sense to filter also alternatives and scenario alternatives that are not in the selected scenario and scenarios have not been selected. For example, consider the following data:

Selecting scenario S1 for filtering would skip scenario S2, alternative c and scenario alternatives of S2.

This change would make e.g. Merger work more intuitively in Toolbox.