Skip to content

Commit 690738c

Browse files
committed
make_gaze_overlay_video: progress updater implementation was wrong
1 parent 511a228 commit 690738c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gazeMapper/process/make_gaze_overlay_video.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,13 @@ def do_the_work(working_dir: pathlib.Path, config_dir: pathlib.Path, gui: video_
6262
total = video_ts.get_last()[0]
6363
progress_indicator.set_total(total)
6464
progress_indicator.set_intervals(int(total/200), int(total/200))
65+
video_maker.set_progress_updater(progress_indicator.update)
6566

6667
# update state: set to not run so that if we crash or cancel below the task is correctly marked as not run (video files are corrupt)
6768
session.update_action_states(working_dir, process.Action.MAKE_GAZE_OVERLAY_VIDEO, process_pool.State.Not_Run, study_config)
6869

6970
# now run
70-
video_maker.process_video(progress_indicator.update)
71+
video_maker.process_video()
7172

7273
# update state
7374
session.update_action_states(working_dir, process.Action.MAKE_GAZE_OVERLAY_VIDEO, process_pool.State.Completed, study_config)

0 commit comments

Comments
 (0)