Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nikhil-sarin opened this issue Mar 5, 2024 · 1 comment
Assignees
Labels

Comments

@nikhil-sarin
Copy link

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)

@benjaminrose
Copy link
Member

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 benjaminrose self-assigned this Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants