sncosmo icon indicating copy to clipboard operation
sncosmo copied to clipboard

Custom source function producing 0 magnitude output if any part of the spectrum goes to zero at any time.

Open nikhil-sarin opened this issue 11 months ago • 1 comments

Hi,

I am using the sncosmo functionality to evaluate magnitudes from spectral series I evaluate from a physical model. The shape of the spectrum is (time, frequency). The bandpass magnitude however fails when any part of the spectrum goes to zero, even if that is far from a given bandpass. Potentially due to the interpolation that sncosmo is doing under the hood but I am not sure.

I can send a minimal example if necessary. It is through the software here (https://github.com/nikhil-sarin/redback)

nikhil-sarin avatar Mar 05 '24 15:03 nikhil-sarin

Thanks for pointing this out. I don't have a lot of time to track down the error at the moment so anything you can do to isolate the problem the quickly I'll be able to check it out. Thanks.

benjaminrose avatar Mar 11 '24 23:03 benjaminrose