Each time the Filter class is used all filters are rescaled to match the wavelength range of the SN spectrum that is being integrated. This is not thread safe if only one Filter class is shared between all threads. On the other hand, each simulations loading it's own filters would introduce a massive IO bottleneck so we need a new memory efficient solution for this.
Each time the Filter class is used all filters are rescaled to match the wavelength range of the SN spectrum that is being integrated. This is not thread safe if only one Filter class is shared between all threads. On the other hand, each simulations loading it's own filters would introduce a massive IO bottleneck so we need a new memory efficient solution for this.