Skip to content

Commit

Permalink
fix for axicon bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ojdf committed Feb 16, 2024
1 parent 24d3dec commit 6142b26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fast/funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def compute_pupil(N, dx, Tx, W0=None, Tx_obsc=0, Raxicon=None, ptype='gauss', Ny
raise TypeError("Using 'axicon' and W0='opt' not supported, please set a value for W0")
x = numpy.arange(-Nx/2, Nx/2, 1) * dx
y = numpy.arange(-Ny/2, Ny/2, 1) * dx
xx, yy = numpy.meshgrid(x,y)
xx, yy = numpy.meshgrid(y,x)
r = numpy.sqrt(xx**2 + yy**2)
if Raxicon == None:
midpt = Tx_obsc/2 + (Tx/2-Tx_obsc/2)/2
Expand Down

0 comments on commit 6142b26

Please sign in to comment.