Hi Anthony,

> Oh OK, I think I understand a little better. What I would do would be to make 
> "for i,file in enumerate(hdf5_files)" the outer most loop and then use the 
> File.walkNodes() method [1] to walk each file and pick out only the data sets 
> that you want to copy, skipping over all others.  This should allow you to 
> only open each of the 400 files once.  Hope this helps.

Thanks.  This is the idea I had, but was failing to implement (although I 
didn't use walkNodes).  To get it to work, I had to figure out how to use 
createEArray properly.  In the end, it was a silly fix.

I created an EArray with shape (0,96,1,2), and was trying to append numpy 
arrays of shape (96,1,2) to this, which was failing.  In the end, all I had to 
do was

arr.append(np.array([my_array]))

where as before, I was simply missing the "[ ]" brackets, so the shapes did not 
line up.


Cheers,

Andre
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to