Skip to content

Commit

Permalink
Merge pull request #48 from iain-buclaw-sociomantic/issue25
Browse files Browse the repository at this point in the history
Align timestamps in deleteBefore.
  • Loading branch information
deniszh committed Apr 5, 2017
2 parents 21d50c1 + 455b6ce commit cf1c438
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ceres.py
Expand Up @@ -807,7 +807,8 @@ def deleteBefore(self, t):
if not exists(self.fsPath):
raise SliceDeleted()

t = t - (t % self.timeStep)
if t % self.timeStep != 0:
t = t - (t % self.timeStep) + self.timeStep
timeOffset = t - self.startTime
if timeOffset < 0:
return
Expand Down

0 comments on commit cf1c438

Please sign in to comment.