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

Method __ne__

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

Source from the content-addressed store, hash-verified

554 return self.frame_num == self._get_other_as_frames(other)
555
556 def __ne__(self, other: "TimecodeLike") -> bool:
557 if other is None:
558 return True
559 if _compare_as_fixed(other, self):
560 return self.frame_num != other.frame_num
561 # For integer comparison, use frame numbers to avoid floating point precision issues.
562 if isinstance(other, int):
563 return self.frame_num != other
564 if isinstance(self._time, (Timecode, _Seconds)):
565 return self.seconds != self._get_other_as_seconds(other)
566 return self.frame_num != self._get_other_as_frames(other)
567
568 def __lt__(self, other: "TimecodeLike") -> bool:
569 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