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

Method __ge__

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

Source from the content-addressed store, hash-verified

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):
600 return self.frame_num >= other.frame_num
601 # For integer comparison, use frame numbers to avoid floating point precision issues.
602 if isinstance(other, int):
603 return self.frame_num >= other
604 if isinstance(self._time, (Timecode, _Seconds)):
605 return self.seconds >= self._get_other_as_seconds(other)
606 return self.frame_num >= self._get_other_as_frames(other)
607
608 def __iadd__(self, other: "TimecodeLike") -> "FrameTimecode":
609 # Narrow `other`'s internal time once so pyright can track it through the dispatch below.

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