We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05e5b13 commit 32a47afCopy full SHA for 32a47af
Framework/Nexus/src/NeXusFile.cpp
@@ -1202,15 +1202,17 @@ Info File::getInfo() {
1202
DimArray dims{0};
1203
ds.getSimpleExtentDims(dims.data());
1204
1205
+ // strings need the length of the string hiding in there too
1206
+ // this doesn't work for variable length strings
1207
+ if (hdf5ToNXType(dt) == NXnumtype::CHAR) {
1208
+ dims[rank - 1] = dataset->getStorageSize();
1209
+ }
1210
+
1211
Info info;
1212
info.type = hdf5ToNXType(dt);
1213
info.dims.push_back(dims.front());
1214
for (std::size_t i = 1; i < rank; i++) {
- // if (dt.getClass() == H5T_STRING && dims[i] == 1) {
- // continue;
- // } else {
1215
info.dims.push_back(dims[i]);
- // }
1216
}
1217
return info;
1218
0 commit comments