Skip to content

Feature: the stop of a Detector can be switched after it is built - #239

Merged
StackEnjoyer merged 1 commit into
masterfrom
feature/detector-stop
Nov 14, 2026
Merged

StackEnjoyer merged 1 commit into
masterfrom
feature/detector-stop

Conversation

@TacHawkes

Copy link
Copy Markdown
Collaborator

Closes #225.

Change

  • BeamletOptics.stop!(d::Detector, stop::Bool) switches whether a detector stops the beams; BeamletOptics.stop(d) reads it (now with a docstring). The change applies from the next solve on, stored hits are kept.
  • Both are public, not exported: stop is a generic name for the user's namespace, and the GUI uses public names like exported API.
  • Docs: Basics page of the detector; agent skill: components/detectors.md.

Tests

  • test/Components/TestDetector.jl: switching off and on between solves, hits kept (392 pass); test/TestAgentSkill.jl passes.

Independent of the v0.14.1 coatings stack; BeamletOpticsGUI can use it for the toggle on the card of a live detector (StackEnjoyer/BeamletOpticsGUI.jl#53).

Style: checked against AGENTS.md (V1: getter/setter pair of the existing stop, N1, V2: mutating verb returns nothing). Skill files updated: components/detectors.md.

🤖 Generated with Claude Code

@TacHawkes TacHawkes added this to the v0.14.1 milestone Nov 11, 2026
@codecov

codecov Bot commented Nov 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@StackEnjoyer
StackEnjoyer merged commit 86a718f into master Nov 14, 2026
5 of 6 checks passed
@StackEnjoyer
StackEnjoyer deleted the feature/detector-stop branch November 14, 2026 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: The stop of a Detector can be changed after it is built

2 participants