mwvgroup / csp-cmfgen

A comparison spectral SNe models against CSP data
https://mwvgroup.github.io/nir-comparison/
0 stars 0 forks source link

Refactor `_synthetic_photometry.py` so that each for loop calls a function #29

Open wmwv opened 4 years ago

wmwv commented 4 years ago

In

nir-comparison/analysis/spectra_chisq/_synthetic_photometry.py

there are a few for loops. I would recommend that the body of each of these for loops be defined as a function. That makes the bodies of these loops testable.