Skip to content

Commit

Permalink
fixed that checkerboard-add_targets converts masks to float
Browse files Browse the repository at this point in the history
  • Loading branch information
LynnSchmittwilken committed Dec 12, 2022
1 parent 989c42f commit b12cf75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stimuli/illusions/checkerboards.py
Expand Up @@ -115,7 +115,7 @@ def add_targets(checkerboard_stim, targets, extend_targets=False, intensity_targ
img = np.where(mask, intensity_target, checkerboard_stim["img"])

checkerboard_stim["img"] = img
checkerboard_stim["mask"] = mask
checkerboard_stim["mask"] = mask.astype(int)
return checkerboard_stim


Expand Down

0 comments on commit b12cf75

Please sign in to comment.