You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
True! Quick fix: call wave.ravel() to get a 1-d array, then reshape the output array to match the input.
This limitation is because I used typed memory views. For example, see this function signature, which means the function only takes a 1-d array of doubles. While more complex, one could use the numpy C API to achieve the more flexible behavior you're looking for without much performance loss. Or there might be a better way.
Yes, that is a solution I considered. It was better for my workflow to just sample the dust law densely and interpolate it using scipy.interpolate.interp1d.
It appears that
extinction
only works with 1-d wavelength inputs.Example:
The text was updated successfully, but these errors were encountered: