Skip to content

Commit

Permalink
Fixed bug in optika.apertures.RectangularAperture.vertices() where …
Browse files Browse the repository at this point in the history
…an instance of `astropy.units.Quantity` was being created instead of a bare `numpy.ndarray`.
  • Loading branch information
byrdie committed Oct 6, 2023
1 parent 9b96356 commit efb09ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optika/apertures.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,8 @@ def vertices(self):
az = na.linspace(0, 360, axis="vertex", num=4, endpoint=False) * u.deg
az = az + 45 * u.deg
result = na.Cartesian3dVectorArray(
x=r * np.cos(az),
y=r * np.sin(az),
x=r * np.cos(az).value,
y=r * np.sin(az).value,
z=0,
)
result.x = result.x * half_width.x
Expand Down

0 comments on commit efb09ba

Please sign in to comment.