Skip to content

Commit

Permalink
Cleaner h5py loader
Browse files Browse the repository at this point in the history
  • Loading branch information
dipterix committed Oct 31, 2024
1 parent aef2ed3 commit 0a972a2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions R/hdf5-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,13 @@ ensure_hdf5_backend <- local({
}

if( h5py_isnull ) {
message("Trying to load via python `h5py`")
h5py <<- tryCatch(
tryCatch(
{
rpymat$import("h5py")
message("Trying to use python `h5py` as the HDF5 backend")
ensure_py_package("h5py")
h5py <<- rpymat$import("h5py")
},
error = function(e) {
ensure_py_package("h5py")
rpymat$import("h5py")
}
)
}
Expand Down

0 comments on commit 0a972a2

Please sign in to comment.