Skip to content

Conversation

@franzpoeschel
Copy link
Contributor

Use char comparison to detect type equality.
I had an error today where a double type was not recognized by the old dt.is() implementation and switching to char comparison fixed that.

Use char comparison to detect type equality
@ax3l
Copy link
Member

ax3l commented Jan 13, 2023

Oh, how did you find pybind11::dtype::char_? I was not aware of this...
pybind/pybind11#2864

@ax3l ax3l modified the milestones: 0.15.0, 0.14.6 Jan 13, 2023
@ax3l ax3l self-assigned this Jan 13, 2023
@ax3l ax3l merged commit e5b1245 into openPMD:dev Jan 13, 2023
@franzpoeschel
Copy link
Contributor Author

To be fair, I just browsed the header files for something that looked useful as a type representation :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants