You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: z0 of AstigmaticGaussianBeamlet is no waist offset #186
GaussianBeamlet(...; z0) starts at position and puts the waist z0 further along the axis; AstigmaticGaussianBeamlet(...; z0) starts at position + z0 * direction with the waist at the start, so z0 only moves the whole beam
The docstring of the 4-argument form calls z0 the "beam waist offset" and the skill lists it like the one of GaussianBeamlet: code that switches to AstigmaticGaussianBeamlet loses the position of the waist without notice
Seen on 0.14.0
using BeamletOptics
const BMO = BeamletOptics
g =GaussianBeamlet([0.0, 0, 0], [0.0, 1, 0], 1.064e-6, 0.5e-3; z0 =0.2)
a =AstigmaticGaussianBeamlet([0.0, 0, 0], [0.0, 1, 0], 1.064e-6, 0.5e-3; z0 =0.2)
BMO.position(first(BMO.rays(g.chief))), gauss_parameters(g, 0.2)[1] # start y = 0, waist 0.5 mm at y = 0.2
BMO.position(first(BMO.rays(a))), gauss_parameters(a, 0.0)[1] # start y = 0.2, waist 0.5 mm at the start
Notes
A waist away from the start is only possible with the 5-argument form and z0_x/z0_y, which are measured from position, while z0 there also sets the start
Open question: should z0 of AstigmaticGaussianBeamlet place the waist as for GaussianBeamlet (breaking for code that relies on the shift), or keep its meaning, with a docstring and skill that say so?
Activity
StackEnjoyer commentedon Oct 28, 2026
Breaking solution needs to go into 0.14.0