GalSim-developers / GalSim

The modular galaxy image simulation toolkit. Documentation:
http://galsim-developers.github.io/GalSim/
Other
226 stars 107 forks source link

ZeroDivisionError in ChromaticSum.drawImage #1170

Closed jchiang87 closed 2 years ago

jchiang87 commented 2 years ago

I'm getting a ZeroDivisionError at this line when remaining_flux = 0.

rmjarvis commented 2 years ago

I guess I'm surprised this ever turned up. I had to use a galaxy with two components at the end, both with zero flux. But here is the fix: #1171.