Closed aakrosh closed 4 years ago
I have encountered this issue before. "reticulate" has some problems with files pickled with python3. To deal with this you should specify python3 before attaching the "reticulate" package and allow for pickled files when loading the npz file.
reticulate::use_python(Sys.which('python3'), required = TRUE)
library(reticulate)
np <- import("numpy")
data <- np$load("sumo_results.npz", allow_pickle = T)
data$files
data$f["clusters"]
Thanks. That works perfectly.
When I read in the output file npz file (sumo_results.npz) using reticulate, I am unable to print the contents of the file named "clusters". I am able to print the contents of all the other files including "quality", "consensus", cophenet", "unfiltered_consensus" and "summary". To recreate this issue, you should be able to do the following
The above should fail with the error
I am using python 3.7.0, and here is the output of my sessionInfo() in R