-
Notifications
You must be signed in to change notification settings - Fork 4
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
BUG: Astropy model cannot evaluate scalar input #9
Comments
Hmm this is an interesting bug, do you mind if we brainstorm together on how to solve it?
I thought at first that the way to solve this was to return the un-normalized transmittance at individual wavelengths by passing the wavelength argument to the model function through Maybe the most rigorous (and expensive?) thing to do is to:
I've implemented this in this branch for beginning the conversation. |
Performance-wise, I am not sure if it is worth it to have the compound Given that the original filter was already sampled, I think |
Haha, I'm 99% sure I only implemented the astropy model framework because you asked for it. Though if your comment above succinctly supersedes your comment here, I agree! It took days to come up with the correct sinusoidal decomposition, but I'm happy to see it go. While being academically "neat", I can't think of a use-case where it's necessary. |
Ah, ops! I did say "analytical"... 😅 Sorry to send you on a wild chase. 😞 It is still nice to have but maybe as an "aside" with caveats documented (e.g., need to use full wavelength range). Thank you for the clarifications! |
Using the example from Getting Started:
The text was updated successfully, but these errors were encountered: