Spine-Toolbox icon indicating copy to clipboard operation
Spine-Toolbox copied to clipboard

Time pattern syntax improvements

Open DillonJ opened this issue 1 year ago • 0 comments

When importing some time pattern data using spinedb_api.import_data() the following syntax generates an error:

{"type": "time_pattern", "data": {"M1-7": 1, "M8": 0, "M9-12": 1}}

I have to instead write:

{"type": "time_pattern", "data": {"M1-7": 1, "M8-8": 0, "M9-12": 1}}

It feels like the first syntax should also work

DillonJ avatar Jun 01 '23 07:06 DillonJ