Closed k-wolfinger closed 1 year ago
We have multiple prop types in the crystal slice. More than one of these (perhaps not all) will require gain calculations. I think we should allow users to toggle gain calculations on/off
The propagate method needs to be restructured to accommodate this complexity, without a lot of copy/paste and annoying if blocks.
Yes, I'm not sure the best way to structure that logic. I would suggest creating a new propagator that just does the gain and then also one that does both the linear propagation (via SRW or LCT) and the gain. Note propagator 'n0n2_lct' for an example of a propagator that doesn't use SRW. Something like this needs to be done for the gain propagator also.
Let me know how I can assist with all of this
Need to restructure CrystalSlice.propagate() method to logically accommodate gain calculation.