diff --git a/src/hdf5/detail/h5/h5_file.hpp b/src/hdf5/detail/h5/h5_file.hpp index 430eb89c4..a5cbe1dd1 100644 --- a/src/hdf5/detail/h5/h5_file.hpp +++ b/src/hdf5/detail/h5/h5_file.hpp @@ -84,14 +84,17 @@ class HighFiveFile ~HighFiveFile() {} - NO_DISCARD HiFile& file() { return h5file_; } + NO_DISCARD HiFile& file() + { + return h5file_; + } template NO_DISCARD auto read_data_set_flat(std::string path) const { std::vector data(H5Easy::getSize(h5file_, path)); - h5file_.getDataSet(path).read(pointer_dim_caster(data.data())); + h5file_.getDataSet(path).read_raw(pointer_dim_caster(data.data())); return data; }