-
Notifications
You must be signed in to change notification settings - Fork 160
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
same issue,Reading fixed length string from attribute #322 #613
Comments
same issue |
dimension of the attribute is 0,so "Impossible to read DataSet of dimensions 0 into arrays of dimensions 1"? |
It sounds like you want to read a single fixed length string, not an array of fixed length strings. The class In order to read a fixed length string you do something along the lines of:
Probably a |
same issue, but the test case "HighFiveFixedLenStringArrayAttribute" work. |
@kailvn testcase has dimensions 1, so it can work. |
Thank you for this subtle difference. We've been working towards improving This would hopefully eliminate the need for |
With #744 merged std::strings and containers thereof, e.g. std::vectorstd::string can be read and written to fixed or variable length HDF5 strings. There's an example here: |
version:2.4.1
code:
error:
same issue :Reading fixed length string from attribute #322
The text was updated successfully, but these errors were encountered: