Skip to content

Comments

Allow all numpy float data types, not just numpy.float64#122

Merged
brendancol merged 1 commit intoxarray-contrib:masterfrom
c-core-labs:master
Aug 18, 2020
Merged

Allow all numpy float data types, not just numpy.float64#122
brendancol merged 1 commit intoxarray-contrib:masterfrom
c-core-labs:master

Conversation

@jthetzel
Copy link
Contributor

Xarray-spatial checks if data array data types are a subclass
of numpy.float. However, numpy.float is an alias of
builtins.float, of which only numpy.float64 is subclassed.
Changing numpy.float to numpy.floating allows all numpy float
data types.

Xarray-spatial checks if data array data types are a subclass
of numpy.float. However, numpy.float is an alias of
builtins.float, of which only numpy.float64 is subclassed.
Changing numpy.float to numpy.floating allows all numpy float
data types.
@brendancol brendancol self-assigned this Aug 18, 2020
@brendancol
Copy link
Contributor

@jthetzel Thanks for the PR. We are reviewing and will get it merged ASAP. So great to have another contributor!

@brendancol brendancol merged commit c1a6722 into xarray-contrib:master Aug 18, 2020
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.

2 participants