MCPcopy Create free account
hub / github.com/Breakthrough/PySceneDetect / __gt__

Method __gt__

scenedetect/common.py:588–596  ·  view source on GitHub ↗
(self, other: "TimecodeLike")

Source from the content-addressed store, hash-verified

586 return self.frame_num <= self._get_other_as_frames(other)
587
588 def __gt__(self, other: "TimecodeLike") -> bool:
589 if _compare_as_fixed(other, self):
590 return self.frame_num > other.frame_num
591 # For integer comparison, use frame numbers to avoid floating point precision issues.
592 if isinstance(other, int):
593 return self.frame_num > other
594 if isinstance(self._time, (Timecode, _Seconds)):
595 return self.seconds > self._get_other_as_seconds(other)
596 return self.frame_num > self._get_other_as_frames(other)
597
598 def __ge__(self, other: "TimecodeLike") -> bool:
599 if _compare_as_fixed(other, self):

Callers

nothing calls this directly

Calls 3

_get_other_as_secondsMethod · 0.95
_get_other_as_framesMethod · 0.95
_compare_as_fixedFunction · 0.85

Tested by

no test coverage detected