class PositionalSchema(IsDescription): """ Stores a triplet of float values for each index. """ # the position arguments must be present idx = IntCol(pos=1) # index fwd = FloatCol(pos=2) # values on the forward strand rev = FloatCol(pos=3) # value on the reverse strand val = FloatCol(pos=4) # weighted value on the combined strands
class StrokelitudeDataDescription(IsDescription): frame = UInt64Col(pos=0) trigger_timestamp = FloatCol(pos=1) # when the image trigger happened processing_timestamp = FloatCol(pos=2) # when the analysis was done left = Float32Col(pos=3) # angle, degrees right = Float32Col(pos=4) # angle, degrees left_antenna = Float32Col(pos=5) # angle, degrees right_antenna = Float32Col(pos=6) # angle, degrees head = Float32Col(pos=7) # angle, degrees
class StrokelitudeDataDescription(IsDescription): frame = UInt64Col(pos=0) trigger_timestamp = FloatCol(pos=1) # when the image trigger happened processing_timestamp = FloatCol(pos=2) # when the analysis was done left = Float32Col(pos=3) # angle, degrees right = Float32Col(pos=4) # angle, degrees left_antenna = Float32Col(pos=5) # angle, degrees right_antenna = Float32Col(pos=6) # angle, degrees head = Float32Col(pos=7) # angle, degrees pulse_width = Float32Col( pos=8) # random pulse width, 0 = short, 1 = long, 2 = unknown pulse_frame = UInt64Col(pos=9) # frame number associated with random pulse
class Info(tables.IsDescription): # 1 _v_pos = 1 name = StringCol(itemsize=2) value = ComplexCol(itemsize=16, pos=0) # 0 y2 = FloatCol(pos=1) # 1 z2 = UInt8Col() class Info2(tables.IsDescription): y3 = Time64Col(shape=2) name = StringCol(itemsize=2) value = ComplexCol(itemsize=16, shape=2)
class TimeseriesDescription(IsDescription): frame = UInt64Col(pos=0) # the most recent data frame trigger_timestamp = FloatCol(pos=1) # when the image for this frame happened receive_timestamp = FloatCol(pos=2) # when the image trigger happened start_display_timestamp = FloatCol(pos=3) # when the image trigger happened stop_display_timestamp = FloatCol(pos=4) # when the image trigger happened stripe_angle = FloatCol(pos=5) # degrees stripe_vel = FloatCol(pos=6) # degrees/second
class TestTDescr(tables.IsDescription): """A description that has several nested columns.""" x = Int32Col(dflt=0, shape=2, pos=0) # 0 y = FloatCol(dflt=1, shape=(2, 2)) z = UInt8Col(dflt=1) z3 = EnumCol({'r': 4, 'g': 2, 'b': 1}, 'r', 'int32', shape=2) color = StringCol(itemsize=4, dflt=b"ab", pos=2) info = Info() class Info(tables.IsDescription): # 1 _v_pos = 1 name = StringCol(itemsize=2) value = ComplexCol(itemsize=16, pos=0) # 0 y2 = FloatCol(pos=1) # 1 z2 = UInt8Col() class Info2(tables.IsDescription): y3 = Time64Col(shape=2) name = StringCol(itemsize=2) value = ComplexCol(itemsize=16, shape=2)
class Record(tables.IsDescription): var1 = StringCol(itemsize=4) # 4-character String var2 = IntCol() # integer var3 = Int16Col() # short integer var4 = FloatCol() # double (double-precision) var5 = Float32Col() # float (single-precision)
class StateDescription(IsDescription): timestamp = FloatCol(pos=0) state = StringCol(255,pos=1)
class TimeDataDescription(IsDescription): timestamp = FloatCol(pos=0) framestamp = FloatCol(pos=1)