Skip to content

Commit

Permalink
fix(RHS2007): WE_dual separate mask for each target
Browse files Browse the repository at this point in the history
Previously, the targets in black were lumped together, as were the targets in white. Now, each target, in each of the two stimuli, has its own mask idx
  • Loading branch information
JorisVincent committed Dec 18, 2023
1 parent 759f8e8 commit 0b78372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stimupy/papers/RHS2007.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def WE_dual(ppd=PPD, pad=True):
# Pad and stack
stim1 = pad_dict_to_shape(stim1, shape, pad_value=v2)
stim2 = pad_dict_to_shape(stim2, shape, pad_value=v2)
stim = stack_dicts(stim1, stim2, keep_mask_indices=True)
stim = stack_dicts(stim1, stim2, keep_mask_indices=False)

params.update(
visual_size=np.array(stim["img"].shape) / ppd,
Expand Down

0 comments on commit 0b78372

Please sign in to comment.