Skip to content
  • Samuel Rowlinson's avatar
    Cleaning up some scattering matrix allocation code · 9319cce0
    Samuel Rowlinson authored
    Removed knm_matrices dicts from Mirror and Beamsplitter Workspace objects, these
    are not used anymore (a legacy from an earlier version of the code).
    
    Added some notes in the above Workspace pxd files about storing KnmMatrix objects
    for separate scattering matrices (i.e. map, aperture Knm matrices) in the near
    future.
    
    Only allocating new memory for scattering matrices when the simulation object
    is non-audio (i.e. carrier sim). If the carrier is audio (i.e. signal), then
    the scattering matrices of each workspace will be set to the corresponding
    DC workspace matrices in the _get_workspace method of the relevant connector.
    
    Also now pointing audio simulation `trace` data to the carrier sim `trace` array,
    ensuring correct beam parameters are obtained from audio simulation workspaces
    if accessed.
    9319cce0