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

Fix importing pivoted data with read_start_row #457

Closed soininen closed 1 month ago

soininen commented 1 month ago

This PR fixes a special case where only the last component of import mappings is set to pivoted and read_start_row > 0.

Fixes spine-tools/Spine-Toolbox#2962

Checklist before merging

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 94.11765% with 1 line in your changes missing coverage. Please review.

Project coverage is 79.18%. Comparing base (9dd944e) to head (9d1c763). Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
spinedb_api/export_mapping/settings.py 50.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #457 +/- ## ========================================== + Coverage 79.13% 79.18% +0.04% ========================================== Files 77 77 Lines 10102 10107 +5 Branches 1806 1810 +4 ========================================== + Hits 7994 8003 +9 + Misses 1760 1757 -3 + Partials 348 347 -1 ```

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