Skip to content

Commit

Permalink
Fix angles
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisVincent committed Nov 15, 2022
1 parent becdee9 commit 8b804ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stimuli/components/angular.py
Expand Up @@ -358,7 +358,7 @@ def grating(

# Determine angles
angular_widths = itertools.repeat(segment_width, n_segments - 1)
angles = np.array([*itertools.accumulate(angular_widths)] + [360])
angles = np.array([0] + [*itertools.accumulate(angular_widths)] + [360])
angles = sorted(np.unique(angles))

# Draw stim
Expand Down

0 comments on commit 8b804ca

Please sign in to comment.