diff --git a/CMakeLists.txt b/CMakeLists.txt index d1970e4..818486b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.24) project(takane - VERSION 0.6.1 + VERSION 0.6.2 DESCRIPTION "ArtifactDB file validators" LANGUAGES CXX) diff --git a/include/takane/delayed_array.hpp b/include/takane/delayed_array.hpp index 42a947b..212bb4c 100644 --- a/include/takane/delayed_array.hpp +++ b/include/takane/delayed_array.hpp @@ -177,7 +177,9 @@ inline size_t height(const std::filesystem::path& path, [[maybe_unused]] const O chihaya_options.details_only = true; auto apath = path / "array.h5"; - auto output = chihaya::validate(apath, "delayed_array", chihaya_options); + auto fhandle = ritsuko::hdf5::open_file(apath); + auto ghandle = ritsuko::hdf5::open_group(fhandle, "delayed_array"); + auto output = chihaya::validate(ghandle, chihaya_options); return output.dimensions[0]; } @@ -193,7 +195,9 @@ inline std::vector dimensions(const std::filesystem::path& path, [[maybe chihaya_options.details_only = true; auto apath = path / "array.h5"; - auto output = chihaya::validate(apath, "delayed_array", chihaya_options); + auto fhandle = ritsuko::hdf5::open_file(apath); + auto ghandle = ritsuko::hdf5::open_group(fhandle, "delayed_array"); + auto output = chihaya::validate(ghandle, chihaya_options); return std::vector(output.dimensions.begin(), output.dimensions.end()); }