-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
flumpy: More comprehensively handle type conversions (#417)
Previously, types were manually mapped between numpy types and the types bound by flex. However, this caused several issues to do with cross-platform behaviour e.g. differences between when numpy gives you q and l types, and windows/linux differences in type sizing. Everything is now matched by signed/unsigned and integer size, so should avoid any blind spots. Since the pybind11 format descriptors just convert to dtype based on size, this should be fine, though in the edge cases there might be some changing data types going back/forth. Fixes #415.
- Loading branch information
Showing
2 changed files
with
67 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
``flumpy``: Fix occasionaly issue matching 64-bit integer types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters