From dc22b68b70d82df45a9e03a27cb30645afbc38eb Mon Sep 17 00:00:00 2001 From: Moritz Kassner Date: Thu, 20 Apr 2017 14:39:53 +0200 Subject: [PATCH] send pupil_data to subprocess to avoid double loading. --- pupil_src/player/video_export_launcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pupil_src/player/video_export_launcher.py b/pupil_src/player/video_export_launcher.py index f778d8e9a2..3c311defb5 100644 --- a/pupil_src/player/video_export_launcher.py +++ b/pupil_src/player/video_export_launcher.py @@ -23,7 +23,7 @@ class Export_Process(mp.Process): """small aditions to the process class""" def __init__(self, target,args): super().__init__(target=target,args=args) - self.should_terminate,self.frames_to_export,self.current_frame,_,_,_,_,_,_,self.out_file_path = args + self.should_terminate,self.frames_to_export,self.current_frame,_,_,_,_,_,_,self.out_file_path,_ = args def status(self): return self.current_frame.value def cancel(self): @@ -133,7 +133,7 @@ def add_export(self,export_range,export_dir): plugins = self.g_pool.plugins.get_initializers() out_file_path=verify_out_file_path(self.rec_name,export_dir) - process = Export_Process(target=export, args=(should_terminate,frames_to_export,current_frame, rec_dir,user_dir,self.g_pool.min_data_confidence,start_frame,end_frame,plugins,out_file_path)) + process = Export_Process(target=export, args=(should_terminate,frames_to_export,current_frame, rec_dir,user_dir,self.g_pool.min_data_confidence,start_frame,end_frame,plugins,out_file_path,self.g_pool.pupil_data)) self.new_export = process def launch_export(self, new_export):