Skip to content

Feature: BeamletOptics 0.14, line and fan sources - #36

Merged
StackEnjoyer merged 5 commits into
mainfrom
port/bmo-0.14
Oct 23, 2026
Merged

StackEnjoyer merged 5 commits into
mainfrom
port/bmo-0.14

Conversation

@StackEnjoyer

@StackEnjoyer StackEnjoyer commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Features

  • Catalog: "Uniform line source" and "Uniform fan source", their rays in the plane of the table
  • Line and fan sources: odd ray counts on the slider, "Width" instead of "Diameter" for a line
  • Snapping, aligning, measuring and the polarization overlay use the center ray of BMO sources
  • Dark theme: polarizers in the saturated look of BeamletOptics 0.14

Bugfixes

  • Object groups work again with BeamletOptics 0.14, where a group is no AbstractObject
  • Detector view: grid and window go to the RegularGrid sampling of BeamletOptics, it threw a MethodError before
  • Detector view: the power equals optical_power with the same sampling, also in a zoomed window
  • A moved detector shows "no hits" until it is traced, since BeamletOptics 0.14 empties it
  • A hit-kind conflict in a beam group shows the solve-error message instead of a generic error

Doc changes

  • Docs and skill: groups as ObjectOrGroup containers, NonInteractableObject instead of MeshDummy
  • Detector views: intensity as flux through the detector, view options as RegularGrid keywords

Internal changes

  • Preview solve traces the rendered beams as one beam group, one table of bounding spheres
  • Trapz is no longer a dependency
  • TestLiveCard and the precompile session advance the tick time, two clicks counted as a double click

Closes #22, closes #31, closes #33, closes #37

Object groups are no AbstractObject in BMO 0.14 (#135): the controls,
selection, cards, picking, snapping, table, components, catalog,
placement, copy, extras and export take BMO.ObjectOrGroup, and the parts
of a group are BMO.objects(group) instead of its shape.

BMO empties a detector that moves (#164): with auto trace off, its view
shows "no hits" until the next solve, also in a linked window. The
preview solve traces the rendered beams of a group as one beam group
(one table of bounding spheres). A hit-kind conflict in the solve of a
beam group gets the message of a conflict of single beams. Polarizers
keep the look of BMO in the dark theme.

TestLiveCard: the ticks of the test advance the time, two clicks on the
same button were taken for a double click. Docs and skill: groups as
ObjectOrGroup containers, NonInteractableObject instead of MeshDummy,
detector views of BMO 0.14.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Hugo Uittenbosch and others added 4 commits October 23, 2026 15:39
The catalog offers "Uniform line source" and "Uniform fan source"; their
rays lie in the plane of the table (basis = [1, 0, 0], also in the
generated code). The ray slider of a line or fan source offers odd
counts, an even one repeats the center ray, and a line source shows its
width instead of a diameter. Snapping, aligning, measuring and the
polarization overlay take the first beam of a source whose rays
BeamletOptics generated, which is its center ray.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
BeamletOptics master takes the grid and the window of a readout as a
sampling (RegularGrid, StackEnjoyer/BeamletOptics.jl#171): the view
evaluates `intensity` on a RegularGrid of its options, which keep their
keywords (`n`, `x_min`, `crop_factor`, ...), and integrates the power with
the weights of that sampling, like `optical_power`. Trapz is no longer a
dependency.

Closes #37

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…sion clock

BeamletOptics master renamed the sampling of the sources to
AbstractSourceSampling. The tests of the icons and of the sources list
the line and fan sources. The ticks of the precompile session advance
the time: Makie took two clicks of consecutive steps for a double click.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 96.55172% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/LiveExport.jl 0.00% 1 Missing ⚠️
src/LiveSnap.jl 0.00% 1 Missing ⚠️
src/LiveTable.jl 50.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@StackEnjoyer
StackEnjoyer merged commit 798a52a into main Oct 23, 2026
3 checks passed
@StackEnjoyer
StackEnjoyer deleted the port/bmo-0.14 branch October 23, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants