Skip to content
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

refactor highfive deprecated/refactored function name #810

Merged
merged 1 commit into from
Feb 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/hdf5/detail/h5/h5_file.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,17 @@ class HighFiveFile

~HighFiveFile() {}

NO_DISCARD HiFile& file() { return h5file_; }
NO_DISCARD HiFile& file()
{
return h5file_;
}


template<typename T, std::size_t dim = 1>
NO_DISCARD auto read_data_set_flat(std::string path) const
{
std::vector<T> data(H5Easy::getSize(h5file_, path));
h5file_.getDataSet(path).read(pointer_dim_caster<dim>(data.data()));
h5file_.getDataSet(path).read_raw(pointer_dim_caster<dim>(data.data()));
return data;
}

Expand Down
Loading