Skip to content

Commit

Permalink
refactor(rectilinear): construct rectilinear from obliques
Browse files Browse the repository at this point in the history
Both for consistency, and to make rectilinear distances rotatable.
  • Loading branch information
JorisVincent committed Apr 4, 2023
1 parent b441a34 commit 4d62316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stimupy/components/__init__.py
Expand Up @@ -90,7 +90,7 @@ def image_base(visual_size=None, shape=None, ppd=None, rotation=0.0, origin="mea
oblique_y = oblique_y - oblique_y.min()

# Rectilinear distance (frames)
rectilinear = np.maximum(np.abs(xx), np.abs(yy))
rectilinear = np.maximum(np.abs(oblique_x), np.abs(oblique_y))

# Radial distance
radial = np.sqrt(xx**2 + yy**2)
Expand Down

0 comments on commit 4d62316

Please sign in to comment.