Skip to content

Commit

Permalink
Better deal with rounding issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisVincent committed Dec 13, 2022
1 parent edead73 commit e36b337
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stimuli/components/frame.py
Expand Up @@ -182,9 +182,9 @@ def square_wave(
frequency=frequency,
period=period,
)
shape = resolution.validate_shape(params["length"] * 2)
visual_size = resolution.validate_visual_size(params["visual_angle"] * 2)
ppd = resolution.validate_ppd(params["ppd"])
shape, visual_size, ppd = resolution.resolve(
visual_size=params["visual_angle"], ppd=params["ppd"]
)

# Draw
stim = frames(
Expand Down

0 comments on commit e36b337

Please sign in to comment.