STILL trying to find an elegant solution to this stupid problem!
Reluctantly moved sources and detectors into linear_optics.py