Skip to content

Bug: z0 of AstigmaticGaussianBeamlet is no waist offset #186

Closed

Description

@StackEnjoyer

Problem

  • 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

  1. added this to the v0.14.0 milestone on Oct 28, 2026
  2. self-assigned this
    on Oct 28, 2026
  3. added
    bug
    on Oct 28, 2026
  4. StackEnjoyer commented on Oct 28, 2026

    @StackEnjoyer
    OwnerAuthor

    Breaking solution needs to go into 0.14.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions