mperrin / poppy

Physical Optics Propagation in Python
BSD 3-Clause "New" or "Revised" License
177 stars 41 forks source link

Display of compound analytic optics problem #6

Closed mperrin closed 9 years ago

mperrin commented 10 years ago

The following does not seem to display the phase of the defined compound lens correctly:

poppy.CompoundAnalyticOptic( [
        poppy.CircularAperture(), 
        poppy.ThinLens(nwaves=2, reference_wavelength=2e-6)]
                            ).display(what='both')

screen shot 2014-08-14 at 6 47 51 pm

Display of the optics individually works fine.

wavelen=2e-6
osys = poppy.OpticalSystem("test", oversample=2)
osys.addPupil( poppy.CircularAperture(radius=3))    # pupil radius in meters
osys.addPupil( poppy.ThinLens(nwaves=nwaves, reference_wavelength=wavelen))
osys.addDetector(pixelscale=0.01, fov_arcsec=4.0)
osys.display(what='both')

unknown

mperrin commented 10 years ago

Commit de89645 ought to fix this; needs testing and re-test after merge of the separate bug fix for the thin lens outer radius issue.

josePhoenix commented 9 years ago

Checked, works.