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
66 stars 17 forks source link

Importer - Entity alternative #2748

Closed e-zaline closed 1 day ago

e-zaline commented 2 months ago

Hello and congrats on v0.8! Now that we don't need the "is_active" parameter but a "Entity alternative" set to true, how can we set that up in the importer specification editor?

soininen commented 2 months ago

I am afraid we may have forgotten to implement entity alternatives in importer and exporter... The previous is_active parameter should still work as a fallback mechanism even without tools, features and methods when importing. @manuelma might know better.

e-zaline commented 3 days ago

Hello @jkiviluo and @soininen, Would it be possible to prioritize this topic and not wait for v0.9.0? Now that I have the issue #2864 with the importer of is_active not working, it really makes FlexTool barely usable at all. Alternatively maybe you have a workaround? This is quite urgent on our side. Thanks!

soininen commented 2 days ago

I am going to work on this now.

soininen commented 1 day ago

It is now possible to import entity alternatives. To setup the imports for existing mappings, check the "Import entity alternatives" check box in Entity class imports and set the Source reference for the "Entity activities" mapping. image