opticspy / lightpipes

LightPipes for Python, "Pure Python version"
https://opticspy.github.io/lightpipes/
BSD 3-Clause "New" or "Revised" License
227 stars 52 forks source link

Fixed default argument for refr. index in Steps() #40

Closed ldoyle closed 3 years ago

ldoyle commented 4 years ago

Fixes the problem that the default arg. for refractive index was a scalar. The new behaviour is:

NB: As mentioned in the manual (but forgotten in the meantime by me), the change of optical path length by a real refractive index is not fully taken into account, so a homogeneous medium with refr=1.33 yields the same result as refr=1.0 and therefore is only interesting with varying refractive index. But of course this fix still makes sense for complex refr. index.

FredvanGoor commented 3 years ago

solved "refractive index scalar" bug in Steps command