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
When I make a numpy array of integers, I get a ValueError. It would be nice to be able to use integers as wavelengths. I don't speak Cython - is this an easy thing to implement?
Here is the call:
extinction.ccm89(np.array([2000]), 1, 3.1)
Yeah this would be nice. (Also to accept scalars and lists.) When I tried this before it actually added significant overhead for small arrays, but I should check how bad it really was.
When I make a numpy array of integers, I get a ValueError. It would be nice to be able to use integers as wavelengths. I don't speak Cython - is this an easy thing to implement?
Here is the call:
extinction.ccm89(np.array([2000]), 1, 3.1)
And the error:
ValueError Traceback (most recent call last)
in ()
----> 1 extinction.ccm89(np.array([2000]), 1, 3.1)
extinction.pyx in extinction.ccm89 (extinction.c:3133)()
ValueError: Buffer dtype mismatch, expected 'double' but got 'long'
The text was updated successfully, but these errors were encountered: