Skip to content

The function numpy.iinfo crashes when used with numpy.float64 #14400

@legionaryu

Description

@legionaryu

Hi folks!
First of all, I would like to thank you for the amazing work you've done with this lib.
I'm having issues when trying to get numpy types info using numpy.iinfo function with numpy.float64 in the version 1.17.1

The following code:

import numpy as np
np.iinfo(np.float64)

Outputs the following error:

----> 1 np.iinfo(np.float64)
d:\folder\env\lib\site-packages\numpy\core\getlimits.py in __init__(self, int_type)
    504         self.key = "%s%d" % (self.kind, self.bits)
    505         if self.kind not in 'iu':
--> 506             raise ValueError("Invalid integer data type %r." % (self.kind,))
    507
    508     @property

ValueError: Invalid integer data type 'f'.

Cheers

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