Skip to content

Commit 825a4c9

Browse files
committed
Update regular_timeseries.py
1 parent bd9f227 commit 825a4c9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/hecdss/regular_timeseries.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ def _get_interval_times(self):
125125
"""
126126
if len(self.times) > 1 and type(self.times[0]) == datetime:
127127
interval = self.times[1]-self.times[0]
128+
total_seconds = interval.total_seconds()
129+
if total_seconds > 86400:
130+
return "empty"
128131
return int(interval.total_seconds())
129132
return "empty"
130133

0 commit comments

Comments
 (0)