Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for numpy complex types #142

Merged
merged 3 commits into from
Apr 17, 2019
Merged

Added support for numpy complex types #142

merged 3 commits into from
Apr 17, 2019

Conversation

normanb
Copy link
Contributor

@normanb normanb commented Apr 17, 2019

Added support and tests for numpy complex data types.

There is an assumption that array sizes that are equal to two and are of type float 32/64 are to be interpreted as complex data types. This seems reasonable and follows numpy.

@ihnorton
Copy link
Member

Just noting here that this change causes interpretation of 2-cell float32 or float64 attributes as np.complex64 and np.complex128 respectively. This is definitely worthwhile, in order to have good support for complex datatypes; revisit if complex datatypes are added in core.

Other 2-cell numeric or string types should round-trip as-is (tests added for 2-cell int16 and '|S2').

@ihnorton ihnorton merged commit 5c86460 into dev Apr 17, 2019
@ihnorton
Copy link
Member

Thanks @normanb 👍

@gsakkis gsakkis deleted the nb/complex branch April 6, 2021 13:39
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