Skip to content

Commit

Permalink
consistency for ap_Npxls when NPXLS="auto"
Browse files Browse the repository at this point in the history
  • Loading branch information
ojdf committed Aug 8, 2024
1 parent 3cf3e28 commit 5a5c62d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fast/fast.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def init_frequency_grid(self):
nyq_Npxls = int(2*numpy.ceil(2*numpy.pi/(nyq * self.dx)/2)) # ensure even

# Make sure enough pixels so aperture is not clipped!
ap_Npxls = int(2*numpy.ceil(self.params['D_GROUND']/self.dx/2))
ap_Npxls = int(2*numpy.ceil(self.params['D_GROUND']/self.dx/2)) + 2

if self.params['AO_MODE'] == 'NOAO' and not numpy.isinf(self.params['L0']):
# Choose number of pixels so that the phase screen is 2x outer scale
Expand Down

0 comments on commit 5a5c62d

Please sign in to comment.