Skip to content

Accept integer wavelengths #6

@abostroem

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'

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