Skip to content

Singleton coordinates crash the core dim order check #591

@aulemahal

Description

@aulemahal

In the core dim order check added by #582, we forgot the case where a coordinate would have only one element. When this happens, the diff is an empty array and the function fails here:

elif isinstance(diffs[0], datetime.timedelta):

The easy solution would be to consider them ascending, as we already do with coordinates that are all the same.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions