Skip to content

Feature: ConstantRefractiveIndex as the constant glass - #56

Merged
StackEnjoyer merged 1 commit into
mainfrom
feature/abstract-refractive-index
Nov 2, 2026
Merged

StackEnjoyer merged 1 commit into
mainfrom
feature/abstract-refractive-index

Conversation

@StackEnjoyer

Copy link
Copy Markdown
Owner

Features

  • Breaking: own glasses in catalog_glasses must be an AbstractRefractiveIndex, not a function
  • export_changes writes the constant glass as ConstantRefractiveIndex(n) instead of λ -> n

Doc changes

  • catalog_glasses, CatalogGlass, components page and agent skill describe the new glass types

Internal changes

BeamletOptics 0.14 takes an AbstractRefractiveIndex as refractive index and
no longer accepts functions or numbers (StackEnjoyer/BeamletOptics.jl#213).
The "constant" glass of a CatalogGlass is a ConstantRefractiveIndex, which
export_changes writes as ConstantRefractiveIndex(n); tests, docs and the
agent skill use it instead of λ -> n.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@StackEnjoyer
StackEnjoyer merged commit fe1400b into main Nov 2, 2026
0 of 3 checks passed
@StackEnjoyer
StackEnjoyer deleted the feature/abstract-refractive-index branch November 2, 2026 23:34
@StackEnjoyer StackEnjoyer added this to the v0.3.0 milestone Nov 2, 2026
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