Skip to content

Commit

Permalink
Merge pull request #331 from jeromegrosse/bug-imagesequenceclip-duration
Browse files Browse the repository at this point in the history
ImageSequenceClip: Check for fps and durations rather than fps and du…
  • Loading branch information
bearney74 authored Feb 17, 2017
2 parents fb023fb + 85c631d commit 64871cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moviepy/video/io/ImageSequenceClip.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def __init__(self, sequence, fps=None, durations=None, with_mask=True,
ismask=False, load_images=False):

# CODE WRITTEN AS IT CAME, MAY BE IMPROVED IN THE FUTURE
if (fps is None) and (duration is None):

if (fps is None) and (durations is None):
raise ValueError("Please provide either 'fps' or 'durations'.")
VideoClip.__init__(self, ismask=ismask)

Expand Down

0 comments on commit 64871cf

Please sign in to comment.