Skip to content

ValueError: Invalid integer data type 'f'.#34

Open
karan-1700 wants to merge 1 commit intoandrewekhalel:masterfrom
karan-1700:patch-1
Open

ValueError: Invalid integer data type 'f'.#34
karan-1700 wants to merge 1 commit intoandrewekhalel:masterfrom
karan-1700:patch-1

Conversation

@karan-1700
Copy link
Copy Markdown

MAX = np.iinfo(GT.dtype).max

np.iinfo() does not work with float data-type as input and raises error: ValueError: Invalid integer data type 'f'. Therefore, use np.finfo() instead.

For reference, check the Numpy Github link: numpy/numpy#14400

https://github.com/andrewekhalel/sewar/blob/ac76e7bc75732fde40bb0d3908f4b6863400cc27/sewar/full_ref.py#L65

np.iinfo() does not work with float data-type as input and raises error: ValueError: Invalid integer data type 'f'.
Therefore, use np.finfo() instead.

For reference, check the Numpy Github link: numpy/numpy#14400
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant