Hi list,

For the last few weeks, I've been happily exploring (parts of) my data
using pytables. Now, however, I've run into a problem.

I have an experimental setup which reads out photomultiplier tubes and,
after several trigger conditions and for the sake of data reduction,
clips events to only include parts which went over a certain threshold
(with pre- and post parts). Needless to say, these result in variable
length arrays, which I'd like to store alongside my calculated pulse
heights, integrals and whatever. Now, I'd like to do this:

class Event(tables.IsDescription):
    event_id = tables.UInt64Col(pos=0)
    timestamp = tables.Time32Col(pos=1)
    nanoseconds = tables.UInt32Col(pos=2)
    ext_timestamp = tables.UInt64Col(pos=3)
    pulseheights = tables.Int16Col(shape=4, dflt=-9999, pos=4)
    integrals = tables.Int32Col(shape=4, dflt=-9999, pos=5)
    baselines = tables.Float64Col(shape=4, dflt=-9999, pos=6)
    baseline_std_devs = tables.Float64Col(shape=4, dflt=-9999, pos=7)
    num_peaks = tables.Int16Col(shape=4, dflt=-9999, pos=8)
    traces = tables.ArrayCol(shape=4)

Obviously, the last line is not supported. My question is how to solve
this as best as possible. Of course, I can create a stand-alone array,
but then it would be hard to really make sure a certain event and trace
go together. I could use a StringCol and pickle/unpickle my arrays, but
that doesn't work because I need to specify an itemsize. Or not? Any
thoughts appreciated!

Thanks!

David


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to