Skip to content

Commit

Permalink
Update viz.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rfma23 authored Feb 14, 2021
1 parent 2539ab5 commit 2eafcec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aertb/core/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def get_frame(frame_events, f_type):
min_ts = events[0]['ts']
delta = duration / n_frames

camera_size = (max(events['x'])+1, max(events['y'])+1)
camera_size = (max(events['y'])+1, max(events['x'])+1)

if f_type == 'decay':
tau = kwargs.get('tau', delta)
Expand All @@ -111,4 +111,4 @@ def get_frame(frame_events, f_type):
frames.append(frame)

duration = kwargs.get('duration', 2)
gif.save(frames, filename, duration=200)
gif.save(frames, filename, duration=200)

0 comments on commit 2eafcec

Please sign in to comment.