Skip to content

Commit

Permalink
Apply black
Browse files Browse the repository at this point in the history
  • Loading branch information
tburrows13 committed May 3, 2020
1 parent 7b014ad commit 4a09124
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moviepy/Clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,13 +493,13 @@ def close(self):
def __eq__(self, other):
if not isinstance(other, Clip):
return NotImplemented

# Make sure that the total number of frames is the same
self_length = self.duration * self.fps
other_length = other.duration * other.fps
if self_length != other_length:
return False

# Make sure that each frame is the same
for frame1, frame2 in zip(self.iter_frames(), other.iter_frames()):
if not np.array_equal(frame1, frame2):
Expand Down

0 comments on commit 4a09124

Please sign in to comment.