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 broken example in parameter_value API documentation #376

Closed soininen closed 2 months ago

soininen commented 3 months ago

There is this code snipped:

parsed_value = TimeSeriesFixedResolution(
    datetime("2023-01-01T00:00"),   # start
    "1D",                           # resolution
    [9, 8, 7, 6, 5, 4, 3, 2, 1, 0], # values
    ignore_year=False,
    repeat=False,
)

that is apparently broken and should be fixed.