Commit a409055
Short-circuit set_snr_of_snr_light_profiles when no SNR profiles present (#471)
Previously the method always ray-traced the full grid before looking for
LightProfileSNR instances, which is wasted work for simulators that use
only regular light profiles (e.g. the cluster simulator, which uses
SersicSph and SersicCore and ray-traced a 1000x1000 grid through 5 dPIE
profiles + an NFW halo for nothing).
Scan the tracer's light profiles up-front; if none are LightProfileSNR,
return before any ray-tracing.
Co-authored-by: Jammy2211 <JNightingale2211@gmail.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 6c3951d commit a409055
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1206 | 1206 | | |
1207 | 1207 | | |
1208 | 1208 | | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
1209 | 1218 | | |
1210 | 1219 | | |
1211 | 1220 | | |
| |||
0 commit comments