• Médéric Boquien's avatar
    Implement a cache for the filters to compute the fluxes. Rather than passing... · 38e7f35b
    Médéric Boquien authored
    Implement a cache for the filters to compute the fluxes. Rather than passing the transmission table as an argument to compute_fnu(), which makes caching difficult and/or slow to compute the hash, we rather pass the filter name. Then the SED object fetches the filter from the database and resamples it on the optimal wavelength grid. The result is stored in cache to avoid carrying out this operation repeatedly.
    38e7f35b
workers.py 3.28 KB