spine-tools / Spine-Toolbox

Spine Toolbox is an open source Python package to manage data, scenarios and workflows for modelling and simulation. You can have your local workflow, but work as a team through version control and SQL databases.
https://www.tools-for-energy-system-modelling.org/
GNU Lesser General Public License v3.0
73 stars 18 forks source link

Option to disable showing entities from dependent classes in the parameter value table #3011

Open jkiviluo opened 3 days ago

jkiviluo commented 3 days ago

Showing all entities from dependent classes of a 0-dimensional entity class in the parameter value table makes it more cluttered. In some situations its nice to have them all there, but often it results in a need to scroll much more than necessary to reach the last empty row where new data can be added. Often scrolling could be avoided all together. See example below.

image

The solution would be to add an user option whether to show the parameters from dependent entities or just the parameters from the selected class(es). This choice could be available under the 'entity_class_name' cell after right-clicking (next to remove filters) and in DB editor settings. It would apply to whole DB editor (and not to individual classes separately - that's unnecessarily complex).