Question on Loading HDF Data Saved in Python

TI36XPro
Wed, 22 May 2024 12:58:14 +0000
General Usage

Hello,

Does anyone have experience with this?

My colleague has some large data saved on our cluster in the .h5 file format. He saved it in python using the h5py package.

I’d like to now open and analyze the same data in Julia. Do you know if that makes sense or is even possible if the data was saved in Python? I had assumed it should be since it is using a common file format (HDF).

I’ve tried the following

using HDF5
datapath = "/path/to/data/results.h5"
data = h5open(datapath, "r")

But I get the following error.

LoadError: unable to determine if /path/to/data/results.h5 is accessible in the HDF5 format (file may not exist)

The file definitely exists. Could it be that it is in the HDF4 format? (not sure how I could tell from the file extension).

Any ideas?

20 posts - 3 participants