From 7895aab153f1e42b6e17fcce5b19ae0bfc8b3c08 Mon Sep 17 00:00:00 2001 From: awarde96 Date: Wed, 11 Sep 2024 14:28:41 +0000 Subject: [PATCH] FIx how steps are converted to datetimes when converting to xarray --- covjsonkit/decoder/TimeSeries.py | 1 + 1 file changed, 1 insertion(+) diff --git a/covjsonkit/decoder/TimeSeries.py b/covjsonkit/decoder/TimeSeries.py index 9991b33..01b34e5 100644 --- a/covjsonkit/decoder/TimeSeries.py +++ b/covjsonkit/decoder/TimeSeries.py @@ -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)))