google-deepmind / google-deepmind/torch-hdf5
Open method returns nil
- Dominant language
- Lua
- Stars
- 241
- Forks
- 125
- PR merge metrics
- No merged PRs in 30d
Description
Hi all,
I am trying to read an HDF5 file using Torch.
I tried with the sample code:
`require 'hdf5'
local myFile = hdf5.open('/path/to/read.h5', 'r')
local data = myFile:read('/path/to/data'):all()
myFile:close()`
The second line works without any error but it returns nil.
When I use this it is okay:
`hdf5.open('test.hdf5')'
[HDF5File: (16777223 / FILE) /pfs/bh/proj/EvolvingAI/mnorouzz/Serengiti/test.hdf5]`
But I cannot put it in a variable.
I tried to reinstall the package, but I git the same results.
What is the problem?
Thanks
Contributor guide
Research direction
Start by reproducing the example around hdf5.open('/path/to/read.h5', 'r') and compare it with the working hdf5.open('test.hdf5') call. Inspect the hdf5.open entry point and relevant usage examples to determine why assigning the result produces nil; done means identifying a reproducible cause and a concrete fix or explanation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- data
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100