Skip to content

Reject negative positions for discrete reflectors - #116

Merged
ameoli merged 1 commit into
mainfrom
validate-reflector-position
Nov 6, 2026
Merged

ameoli merged 1 commit into
mainfrom
validate-reflector-position

Conversation

@ameoli

@ameoli ameoli commented Nov 5, 2026

Copy link
Copy Markdown
Owner

A reflector configured at z: -5 cm could pass validation and disappear from the simulated fiber. Both pyofdr validate and pyofdr run now reject negative positions before simulation and report the offending field. The allowed range includes both the fiber input and the end face.

Regression tests exercise both CLI commands with a negative position in centimeters. All 159 targeted tests passed locally, and both commands also succeeded with a reflector at zero.

@ameoli
ameoli merged commit a628cdc into main Nov 6, 2026
6 checks passed
@ameoli
ameoli deleted the validate-reflector-position branch November 6, 2026 20:13
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.

1 participant