Commit 2853ed35 authored by Samuel Rowlinson's avatar Samuel Rowlinson
Browse files

Refs #368 --- applying refractive index correctly to Cavity class eigenmode values

The BeamParam instances created in Cavity.qx and Cavity.qy were incorrectly assuming
that the source node of the cavity was associated with nr=1. This is updated to use
the correct refractive index linked with the source node.

Additionally a added generate_abcd_str method to Cavity class. This gives a string
representation of the operation used to perform the round-trip matrices of the cavity.
Useful for debugging purposes.
parent b91b8a19
Pipeline #240951 passed with stages
in 62 minutes and 43 seconds