Skip to content

Commit

Permalink
Invert the log messages when time falls between events
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisherlevine committed Jul 5, 2023
1 parent b384766 commit 3747c15
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/lsst/summit/utils/tmaUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1647,8 +1647,9 @@ def findEvent(self, time):
naturalTimeBeforeCurrent = humanize.naturaldelta(timeBeforeCurrent,
minimum_unit='MICROSECONDS')
self.log.info(f"{logStart} and lies"
f" {naturalTimeBeforeCurrent} before the start of event {event.seqNum}, and"
f" {naturalTimeAfterPrev} after the end of event {previousEvent.seqNum}.")
f" {naturalTimeAfterPrev} after the end of event {previousEvent.seqNum}"
f" and {naturalTimeBeforeCurrent} before the start of event {event.seqNum}."
)
return None

raise RuntimeError('This should never happen')

0 comments on commit 3747c15

Please sign in to comment.