Closed jpearl01 closed 2 years ago
Hi josh,
First, just a basic comment... p
is a kernel function in ruby so I wouldn't use it as a variable name (p thing
means puts thing.inspect
.
Second, it looks as though NArray has been updated: what version are you using?
Ugh, how embarrassing, rookie mistake
Narray version: narray (0.6.1.2)
The dataset should just be a single vector of values, from what I can ascertain (looking at it with HDFView)
Thanks for getting back to me!
~josh
Hello,
I'm trying to loop through some values in an hdf5 file, but running into some issues. I'm able to read the file fine, and load the dataset(s) I'm interested in, but I'm having trouble with the conversion into an array of values.
Here is a link to the file I'm opening: https://www.dropbox.com/s/d8u7d3zaszcgn0m/m151002_181152_42168_c100863312550000001823190302121650_s1_p0.2.ccs.h5?dl=0
I'm essentially trying to convert this python code into ruby:
And here's what I get to (just testing this out in irb):
I'm thinking that I'm just doing something very silly, and that you might know just off the top of your head what I'm doing wrong. I haven't worked with hdf5 files much at all. shrug
Thanks, ~josh