Skip to content

Commit

Permalink
skip I2MC setting overrieds that are None
Browse files Browse the repository at this point in the history
  • Loading branch information
dcnieho committed Sep 23, 2024
1 parent 8f2e5be commit 07b11eb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ def process(working_dir, config_dir=None, do_global_shift=True, max_dist_fac=.5,
# apply setting overrides from caller, if any
if I2MC_settings_override:
for k in I2MC_settings_override:
opt[k] = I2MC_settings_override[k]
if I2MC_settings_override[k] is not None:
opt[k] = I2MC_settings_override[k]

# collect data
qHasLeft = np.any(np.logical_not(np.isnan([s.gazePosPlane2DLeft for v in gazePoster.values() for s in v])))
Expand Down

0 comments on commit 07b11eb

Please sign in to comment.