From 0b78372f5c44677bba59dcf4f109f087770b0739 Mon Sep 17 00:00:00 2001 From: Joris Vincent Date: Mon, 18 Dec 2023 13:31:12 +0100 Subject: [PATCH] fix(RHS2007): WE_dual separate mask for each target 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 --- stimupy/papers/RHS2007.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stimupy/papers/RHS2007.py b/stimupy/papers/RHS2007.py index 2ed486c..a68672f 100644 --- a/stimupy/papers/RHS2007.py +++ b/stimupy/papers/RHS2007.py @@ -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,