Skip to content

Commit

Permalink
Merge pull request #1963 from pupil-labs/gazer_dont_activate_on_fail
Browse files Browse the repository at this point in the history
Capture: Only set active gaze mapping plugin if calibration did not fail
  • Loading branch information
papr authored Jul 7, 2020
2 parents a3139f5 + c921fd5 commit 94db63b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pupil_src/shared_modules/gaze_mapping/gazer_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,9 @@ def __init__(
else:
raise ValueError("Requires either `calib_data` or `params`")

# used by pupil_data_relay for gaze mapping
g_pool.active_gaze_mapping_plugin = self
if self.alive:
# Used by pupil_data_relay for gaze mapping.
g_pool.active_gaze_mapping_plugin = self

def get_init_dict(self):
return {"params": self.get_params()}
Expand Down

0 comments on commit 94db63b

Please sign in to comment.