Skip to content

Commit

Permalink
Fix minor bug when converting to xarray, where steps were unsorted
Browse files Browse the repository at this point in the history
  • Loading branch information
awarde96 committed Jan 15, 2025
1 parent ef8754e commit e7afe22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions covjsonkit/decoder/BoundingBox.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ def to_xarray(self):
coverage["mars:metadata"]["step"]
] = coverage["ranges"][parameter]["values"]

datetimes = list(set(datetimes))
numbers = list(set(numbers))
steps = list(set(steps))
datetimes = sorted(list(set(datetimes)))
numbers = sorted(list(set(numbers)))
steps = sorted(list(set(steps)))

new_values = {}
for parameter in values.keys():
Expand Down

0 comments on commit e7afe22

Please sign in to comment.