Skip to content

Commit

Permalink
Rename getLastestTime to getLatestTime
Browse files Browse the repository at this point in the history
Per directions [here](ros#1449 (comment)).
  • Loading branch information
madebyollin authored Jul 6, 2018
1 parent 89ca9a7 commit 9429935
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion utilities/message_filters/src/message_filters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,16 @@ def getElemBeforeTime(self, stamp):
return None
return older[-1]

def getLastestTime(self):
def getLatestTime(self):
"""Return the newest recorded timestamp."""
if not self.cache_times:
return None
return self.cache_times[-1]

def getLastestTime(self):
"""Return the newest recorded timestamp (equivalent to `getLatestTime()`, but included for backwards compatibility)."""
return self.getLatestTime()

def getOldestTime(self):
"""Return the oldest recorded timestamp."""
if not self.cache_times:
Expand Down

0 comments on commit 9429935

Please sign in to comment.