Skip to content

Accept integer wavelengths #6

Description

@abostroem

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'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions