Skip to content

New version: TransferMatrix v3.0.1#151096

Merged
JuliaTagBot merged 1 commit intomasterfrom
registrator-transfermatrix-2beed9eb-v3.0.1-beae697044
Mar 23, 2026
Merged

New version: TransferMatrix v3.0.1#151096
JuliaTagBot merged 1 commit intomasterfrom
registrator-transfermatrix-2beed9eb-v3.0.1-beae697044

Conversation

@JuliaRegistrator
Copy link
Copy Markdown
Contributor

## v3.0.1

### Bug fix
  - Fix data race in sweep_thickness — a single mutable layer vector was shared across threads, causing scrambled
  output when multithreading was enabled. Each thread now operates on its own copy.

### Examples
  - Update dbr_cavity, fabry-perot, and quarter_wave examples for v3 TransferResult return type

UUID: 2beed9eb-9e49-431e-8607-1bb8bf5c1db8
Repo: https://github.com/garrekstemo/TransferMatrix.jl.git
Tree: 28fc406f369df30afc71db8e931867fbe6183317

Registrator tree SHA: 50f504d641745716a5b3eabaf681d3a4937d2ae3
JuliaRegistrator referenced this pull request in garrekstemo/TransferMatrix.jl Mar 23, 2026
* Add CLAUDE.md with project documentation

* Update examples for v3 TransferResult return type

transfer() now returns a TransferResult struct instead of a
(Tpp, Tss, Rpp, Rss) tuple. Update dbr_cavity, fabry-perot,
and quarter_wave examples to use field access (res.Tpp, etc.).

* Fix thread safety bug in sweep_thickness

sweep_thickness shared a single mutable layers vector across all
threads. Concurrent mutations to layers_mut[t_index] caused a data
race, producing scrambled output slices. Each call to make_layers
now creates its own copy of the layer vector.
@github-actions
Copy link
Copy Markdown
Contributor

Hello, I am an automated registration bot. I help manage the registration process by checking your registration against a set of AutoMerge guidelines. If all these guidelines are met, this pull request will be merged automatically, completing your registration. It is strongly recommended to follow the guidelines, since otherwise the pull request needs to be manually reviewed and merged by a human.

1. AutoMerge Guidelines are all met! ✅

Your new version registration met all of the guidelines for auto-merging and is scheduled to be merged in the next round (~20 minutes).

2. To pause or stop registration

If you want to prevent this pull request from being auto-merged, simply leave a comment. If you want to post a comment without blocking auto-merging, you must include the text [noblock] in your comment.

Tip: You can edit blocking comments to add [noblock] in order to unblock auto-merging.

@JuliaTagBot JuliaTagBot merged commit 3d71434 into master Mar 23, 2026
22 checks passed
@JuliaTagBot JuliaTagBot deleted the registrator-transfermatrix-2beed9eb-v3.0.1-beae697044 branch March 23, 2026 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants