-
Notifications
You must be signed in to change notification settings - Fork 64
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
Support numpy/python 32 bit float type names #800
Conversation
9e2dbd8
to
4db33c3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to go look it up, but apparently numpy's single-precision float type goes by the name numpy.single
as well. I suggested a change to account for this too.
Regardless, should we also update the Variable Types and Sizes section of doc/BMIconventions.md?
Co-authored-by: Robert Bartel <37884615+robertbartel@users.noreply.github.com>
Updated bmi docs in 1d22bbc |
@@ -81,7 +81,19 @@ Since the [BMI Documentation] simply states that, "Use of native language type n | |||
* `get_var_itemsize` result **must** match the size of the data type in the compiler used to build ngen | |||
* Python | |||
* `int`, `long`, `long long`, `int64`, `longlong`, `float`, `float64`, `long double` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This missed documenting that float32
is accepted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(without a numpy.
or np.
prefix)
Add support for numpy/python 32 bit float type names in python bmi adapter.
Changes
float32
,np.float32
, andnumpy.float32
to the cxxfloat
typeChecklist
Target Environment support