Skip to content

Commit

Permalink
autoformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
LynnSchmittwilken committed Mar 27, 2023
1 parent 941cbaa commit d382596
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions stimupy/stimuli/sbcs.py
Expand Up @@ -300,7 +300,7 @@ def with_dots(
patch = pad_to_shape(patch, shape, 0)
except Exception:
raise ValueError("visual_size or shape_argument are too small. Advice: set to None")

# Create the sbc in the background:
img_shape = patch.shape

Expand Down Expand Up @@ -517,7 +517,7 @@ def dotted(
visual_size=target_shape, ppd=pixels_per_dot
)
rect_visual_size = resolution.visual_size_from_shape_ppd(shape=rect_shape, ppd=ppd)

try:
patch = pad_to_shape(patch, shape, 0)
except Exception:
Expand All @@ -533,7 +533,6 @@ def dotted(
intensity_rectangle=intensity_target,
)


img = np.where(patch, intensity_dots, intensity_background)
img = np.where(patch + sbc["rectangle_mask"] == 2, intensity_target, img)
mask = np.where(patch + sbc["rectangle_mask"] == 2, 1, 0)
Expand Down

0 comments on commit d382596

Please sign in to comment.