Skip to content

Commit

Permalink
Bugfix for filesystem path issues on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Jan 25, 2024
1 parent c043a2b commit ffdc2d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
8 changes: 6 additions & 2 deletions include/takane/delayed_array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

Expand All @@ -193,7 +195,9 @@ inline std::vector<size_t> 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<size_t>(output.dimensions.begin(), output.dimensions.end());
}

Expand Down

0 comments on commit ffdc2d4

Please sign in to comment.