Skip to content

Commit

Permalink
FIx how steps are converted to datetimes when converting to xarray
Browse files Browse the repository at this point in the history
  • Loading branch information
awarde96 committed Sep 11, 2024
1 parent 621dbec commit 7895aab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions covjsonkit/decoder/TimeSeries.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def to_xarray(self):
y = coords[0]["axes"]["y"]["values"]
z = coords[0]["axes"]["z"]["values"]
steps = coords[0]["axes"]["t"]["values"]
steps = [step.replace('Z', '') for step in steps]
steps = pd.to_datetime(steps)
# steps = list(range(len(steps)))

Expand Down

0 comments on commit 7895aab

Please sign in to comment.