From 19fd2b2b13530a75fc6ea75d279c54f14052bfa2 Mon Sep 17 00:00:00 2001 From: JonathonMSmith <36175570+JonathonMSmith@users.noreply.github.com> Date: Mon, 6 May 2024 12:04:44 -0400 Subject: [PATCH] updated deprecated pandas timedelta usage --- pysat/_orbits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pysat/_orbits.py b/pysat/_orbits.py index 6825ef9da..deddd29af 100644 --- a/pysat/_orbits.py +++ b/pysat/_orbits.py @@ -379,7 +379,7 @@ def _calc_orbits(self): # Iterating by date. We need to check step (frequency string) # against width (timedelta) step = pds.tseries.frequencies.to_offset(self.inst._iter_step) - step = dt.timedelta(seconds=step.delta.total_seconds()) + step = dt.timedelta(seconds=pds.Timedelta(step).total_seconds()) root = dt.datetime(2001, 1, 1) if root + step < root + self.inst._iter_width: raise ValueError(estr)