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

Add import mappings for entity alternative #425

Closed soininen closed 4 months ago

soininen commented 4 months ago

Added import_mapping.EntityAlternativeActivityMapping that allows importing entity alternatives. To facilitate its use in Importer, parameter mappings now have AlternativeMapping as the root mapping replacing ParameterDefinitionMapping. This should not have other effects as the order is not important in this case.

Re spine-tools/Spine-Toolbox#2748

Checklist before merging

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 78.34%. Comparing base (faa77ef) to head (0dcda6f).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #425 +/- ## ========================================== + Coverage 78.29% 78.34% +0.04% ========================================== Files 72 72 Lines 9575 9595 +20 Branches 2044 2048 +4 ========================================== + Hits 7497 7517 +20 Misses 1738 1738 Partials 340 340 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.