Skip to content

Commit

Permalink
fix(whites): enable specifying either 1, or multiple target indices
Browse files Browse the repository at this point in the history
Some configuration was causing errors
  • Loading branch information
JorisVincent committed Dec 18, 2023
1 parent 759f8e8 commit ba552b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stimupy/stimuli/whites.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ def generalized(
target_bar_mask = mask_targets(
element_mask=stim["grating_mask"], target_indices=target_indices
)
if isinstance(target_indices, (int, float)):
target_indices = (target_indices,)
stim["target_indices"] = target_indices

# Mask rectangular regions
Expand Down

0 comments on commit ba552b9

Please sign in to comment.