Skip to content

Commit

Permalink
Bugfix: key target_mask in waves._linear
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisVincent committed Mar 21, 2023
1 parent ae195ef commit 461f593
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stimupy/waves.py
Expand Up @@ -130,7 +130,7 @@ def sine_linear(
stim["grating_mask"] == (bar_idx + 1), target_idx + 1, targets_mask
)
targets_mask = targets_mask.astype(int)
stim["targets_mask"] = targets_mask
stim["target_mask"] = targets_mask

# Place target(s)
if isinstance(intensity_target, (int, float)):
Expand Down Expand Up @@ -250,7 +250,7 @@ def square_linear(
stim["grating_mask"] == (bar_idx + 1), target_idx + 1, targets_mask
)
targets_mask = targets_mask.astype(int)
stim["targets_mask"] = targets_mask
stim["target_mask"] = targets_mask

# Place target(s)
if isinstance(intensity_target, (int, float)):
Expand Down

0 comments on commit 461f593

Please sign in to comment.