Skip to content

Commit

Permalink
updated deprecated pandas timedelta usage
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathonMSmith committed May 6, 2024
1 parent 9acdd0f commit 19fd2b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysat/_orbits.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 19fd2b2

Please sign in to comment.