Skip to content

Commit

Permalink
fixed small bug in two-sided mueller lyer
Browse files Browse the repository at this point in the history
  • Loading branch information
LynnSchmittwilken committed Mar 16, 2023
1 parent 65c290b commit a378ada
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stimupy/illusions/mueller_lyers.py
Expand Up @@ -71,6 +71,9 @@ def mueller_lyer(

# Resolve resolution
shape, visual_size, ppd = resolution.resolve(shape=shape, visual_size=visual_size, ppd=ppd)

if outer_lines_angle > 180:
outer_lines_angle -= 360

if outer_lines_angle < -180 or outer_lines_angle > 180:
raise ValueError("outer_lines_angle should be between -180 and 180 deg")
Expand Down

0 comments on commit a378ada

Please sign in to comment.