Skip to content

Commit

Permalink
removed deepcopy as it was not needed and created a memoryleak during…
Browse files Browse the repository at this point in the history
… export.
  • Loading branch information
mkassner committed Jul 23, 2015
1 parent cafff14 commit f6aeb2c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pupil_src/player/scan_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import numpy as np
from pyglui import ui
from methods import denormalize,normalize
from copy import deepcopy
import logging
logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -91,8 +90,7 @@ def update(self,frame,events):
#update info for next frame.
self.prev_gray = gray_img
self.prev_frame_idx = frame.index
# copy the data/contents of recent_gaze_positions don't make a reference
self.past_gaze_positions = deepcopy(events['gaze_positions'])
self.past_gaze_positions = events['gaze_positions']

def init_gui(self):
# initialize the menu
Expand Down

0 comments on commit f6aeb2c

Please sign in to comment.