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

Dubious code in import_functions #188

Closed soininen closed 1 year ago

soininen commented 1 year ago

Line 1653 in import_functions.py:

index = int(max(value_index_list.split(","))) + 1

This probably doesn't work as intended. For example, if value_index_list = "1,2,3,4,5,6,7,8,9,10", max will return "9", not "10".