Skip to content

Instantly share code, notes, and snippets.

View aboSamoor's full-sized avatar
🐪

RAMI ALRFOU aboSamoor

🐪
View GitHub Profile
@swarbhanu
swarbhanu / EArrayHDF.py
Created November 29, 2011 14:48
This program creates a EArray using PyTables. One dimension is extendable. One dimensional numpy arrays of the same length are appended as rows.
import tables as tb
import numpy as np
#initialize
filename='earrayEx.h5'
atom=tb.StringAtom(itemsize=8)
shape=(0,)
#open hdf5 file and create an earray
fileh=tb.openFile(filename,'w')