Skip to content

Commit

Permalink
Merge pull request #215 from bwagner/master
Browse files Browse the repository at this point in the history
fixed module hierarchy for Trajectory
  • Loading branch information
bearney74 authored Feb 21, 2017
2 parents e4d9032 + 2153c20 commit ce38d41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion moviepy/video/tools/interpolators.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def addx(self, x):

def addy(self, y):

return Trajectory(self.tt, self.xx+y, self.yy)
return Trajectory(self.tt, self.xx, self.yy+y)

def update_interpolators(self):
self.xi = Interpolator(self.tt, self.xx)
Expand Down
2 changes: 1 addition & 1 deletion moviepy/video/tools/tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def manual_tracking(clip, t1=None, t2=None, fps=None, nobjects = 1,
nobjects=3, savefile="track.txt")
>>> # ...
>>> # LATER, IN ANOTHER SCRIPT, RECOVER THESE TRAJECTORIES
>>> from moviepy.tools.tracking import Trajectory
>>> from moviepy.video.tools.tracking import Trajectory
>>> traj1, traj2, traj3 = Trajectory.load_list('track.txt')
>>> # If ever you only have one object being tracked, recover it with
>>> traj, = Trajectory.load_list('track.txt')
Expand Down

0 comments on commit ce38d41

Please sign in to comment.