class SENSOR_WF(tb.IsDescription): """ Describes a true waveform (zero supressed) """ event = tb.UInt32Col(pos=0) ID = tb.UInt32Col(pos=1) time_mus = tb.Float32Col(pos=2) ene_pes = tb.Float32Col(pos=3)
class Info(tables.IsDescription): year = tables.Int16Col() station_id = tables.Int32Col() wban_id = tables.Int32Col() call_id = tables.StringCol(6) lat = tables.Float32Col() lon = tables.Float32Col() elevation = tables.Int16Col()
class DetectorGeometry(tb.IsDescription): """ Stores geometry information for the detector """ x_det = tb.Float32Col(shape=2, pos=1) # xmin, xmax y_det = tb.Float32Col(shape=2, pos=2) # ymin, ymax z_det = tb.Float32Col(shape=2, pos=3) # zmin, zmax r_det = tb.Float32Col(pos=4) # radius
class DescSPLITS(tb.IsDescription): """ struct: date, sending ratio(free), sending ratio (charged), sending price, dividend """ time = tb.Time32Col(pos=0) # seconds ince 1970.1.1): integer sd = tb.Float32Col(pos=1) # songgu ratio: float ss = tb.Float32Col(pos=2) # peigu ratio: float ssp = tb.Float32Col(pos=3) # peigu ratio: float cd = tb.Float32Col(pos=4) # dividend: float
class MCHitInfo(tb.IsDescription): """Stores the simulated hits as metadata using Pytables. """ hit_position = tb.Float32Col(pos=0, shape=3) hit_time = tb.Float64Col(pos=1) hit_energy = tb.Float32Col(pos=2) label = tb.StringCol(20, pos=3) particle_indx = tb.Int16Col(pos=4) hit_indx = tb.Int16Col(pos=5)
class PhenotypeValue(tables.IsDescription): """ Phenotype value wrapper """ ecotype = tables.Int32Col() accession_name = tables.StringCol(16) mean_value = tables.Float32Col() std_dev = tables.Float32Col() comment = tables.StringCol(256)
class AMASS_ROW(pytables.IsDescription): fid = pytables.Int16Col(1) # 1-character String fname = pytables.Int32Col(1) # 1-character String gender = pytables.Int16Col(1) # 1-character String pose = pytables.Float32Col(52 * 3) # float (single-precision) dmpl = pytables.Float32Col(8) # float (single-precision) pose_matrot = pytables.Float32Col(52 * 9) # float (single-precision) betas = pytables.Float32Col(16) # float (single-precision) trans = pytables.Float32Col(3) # float (single-precision)
class HisparcSatellite(tables.IsDescription): event_id = tables.UInt32Col(pos=0) timestamp = tables.Time32Col(pos=1) min_n = tables.UInt16Col(pos=2) mean_n = tables.Float32Col(pos=3) max_n = tables.UInt16Col(pos=4) min_signal = tables.UInt16Col(pos=5) mean_signal = tables.Float32Col(pos=6) max_signal = tables.UInt16Col(pos=7)
class WhiskerSeg(tables.IsDescription): time = tables.UInt32Col() id = tables.UInt16Col() tip_x = tables.Float32Col() tip_y = tables.Float32Col() fol_x = tables.Float32Col() fol_y = tables.Float32Col() pixlen = tables.UInt16Col() chunk_start = tables.UInt32Col()
class omega_percent(tables.IsDescription): """ percentage of: cis trans peptide bonds """ replica_id = tables.StringCol(itemsize=10, pos=0) trans_x_pro = tables.Float32Col(pos=1) cis_x_pro = tables.Float32Col(pos=2) trans_y_x = tables.Float32Col(pos=3) cis_y_x = tables.Float32Col(pos=4)
class Biography(tables.IsDescription): ''' pytables descriptor class for biographical information. ''' name = tables.StringCol(32) start_date = tables.StringCol(10) baseline_mass = tables.Float32Col() minimum_mass = tables.Float32Col() box = tables.Int32Col()
class rg(tables.IsDescription): """ Radius of gyration of C alpha along the time trjectory """ time = tables.Float32Col(pos=0) rg = tables.Float32Col(pos=1) rg_x = tables.Float32Col(pos=2) rg_y = tables.Float32Col(pos=3) rg_z = tables.Float32Col(pos=4)
class OrderData(tables.IsDescription): date = tables.TimeCol() order_type = tables.StringCol(16) symbol = tables.StringCol(16) date_str = tables.StringCol(16) order = tables.StringCol(64) executed_quantity = tables.Int32Col() executed_price = tables.Float32Col() basis = tables.Float32Col()
class Photometry(tables.IsDescription): time = tables.Float64Col() flux = tables.Float32Col() flux_err = tables.Float32Col() mag = tables.Float32Col() mag_err = tables.Float32Col() telescope = tables.StringCol(16) instrument = tables.StringCol(16) filter_name = tables.StringCol(16)
class ClusterInfoTable(tb.IsDescription): event_number = tb.Int64Col(pos=0) id = tb.UInt16Col(pos=1) n_hits = tb.UInt16Col(pos=2) charge = tb.Float32Col(pos=3) seed_column = tb.UInt16Col(pos=4) seed_row = tb.UInt16Col(pos=5) mean_column = tb.Float32Col(pos=6) mean_row = tb.Float32Col(pos=7)
class rama(tables.IsDescription): """ phi, psi: dihedral angles aa: amino acid """ phi = tables.Float32Col(pos=0) psi = tables.Float32Col(pos=1) # For types with a non-fixed size, this sets the size in bytes of individual items in the column. aa = tables.StringCol(itemsize=10, pos=2)
class DataSensor(tb.IsDescription): """Store metadata information for the SiPMs (position, gain, calibration-constant, mask). """ channel = tb. Int32Col(pos=0) # electronic channel position = tb.Float32Col(pos=1, shape=3) coeff = tb.Float64Col(pos=2) adc_to_pes = tb.Float32Col(pos=3) noise_rms = tb.Float32Col(pos=4)
class ResultRecordFT(tables.IsDescription): """ Fisher's exact test """ chromosome = tables.Int32Col() position = tables.Int32Col() score = tables.Float64Col() maf = tables.Float32Col() mac = tables.Int32Col() odds_ratio = tables.Float32Col()
class Persons_R(t.IsDescription): houseid = t.Int64Col() personid = t.Int32Col() schdailystatus = t.Int32Col() wrkdailystatus = t.Int32Col() dependency = t.Int32Col() valueoftimeperdist = t.Float32Col() episodes = t.Int32Col() hhwagerate = t.Float32Col() valueoftime = t.Float32Col()
class S12(tb.IsDescription): """Store for a S1/S2 The table maps a S12: peak is the index of the S12 dictionary, running over the number of peaks found time and energy of the peak. """ event = tb. Int32Col(pos=0) peak = tb. UInt8Col(pos=2) # peak number time = tb.Float32Col(pos=3) # time in ns ene = tb.Float32Col(pos=4) # energy in pes
class AMASS_ROW(pytables.IsDescription): gender = pytables.Int16Col(1) # 1-character String idx = pytables.Int16Col(1) # 1-character String frame = pytables.Int16Col(1) # 1-character String pose = pytables.Float32Col(24 * 3) # float (single-precision) pose_matrot = pytables.Float32Col(24 * 9) # float (single-precision) betas = pytables.Float32Col(10) # float (single-precision) trans = pytables.Float32Col(3) # float (single-precision) tightness = pytables.Float32Col(2) outfit = pytables.Int16Col(6)
class HdfTable(tables.IsDescription): """Define the flagging table structure for pytables""" channels_l = tables.Float32Col(32) channels_r = tables.Float32Col(32) stokes_q = tables.Float32Col(32) stokes_u = tables.Float32Col(32) time = tables.Int32Col() subtime = tables.Int32Col() integration_l = tables.Int32Col()
class MonitoringSubarrayPointing(tables.IsDescription): """ Create the r0 Subarray pointing inside the monitoring directory """ time = tables.Float64Col() tels_with_trigger = tables.UInt64Col() array_azimuth = tables.Float32Col() array_altitude = tables.Float32Col() array_ra = tables.Float32Col() array_dec = tables.Float32Col()
class ClusterInfoTable(tb.IsDescription): event_number = tb.Int64Col(pos=0) id = tb.UInt16Col(pos=1) size = tb.UInt16Col(pos=2) tot = tb.UInt16Col(pos=3) seed_column = tb.UInt8Col(pos=4) seed_row = tb.UInt16Col(pos=5) mean_column = tb.Float32Col(pos=6) mean_row = tb.Float32Col(pos=7) event_status = tb.UInt16Col(pos=8)
class ResultRecord(tables.IsDescription): """ Kruskal Wallis """ chromosome = tables.UInt8Col() position = tables.Int32Col() score = tables.Float32Col() maf = tables.Float32Col() mac = tables.Int32Col() perc_var_expl = tables.Float32Col()
class Lumitable(t.IsDescription): fillnum = t.UInt32Col(shape=(), dflt=0, pos=0) runnum = t.UInt32Col(shape=(), dflt=0, pos=1) lsnum = t.UInt32Col(shape=(), dflt=0, pos=2) nbnum = t.UInt32Col(shape=(), dflt=0, pos=3) timestampsec = t.UInt32Col(shape=(), dflt=0, pos=4) avgraw = t.Float32Col(shape=(), dflt=0.0, pos=5) avg = t.Float32Col(shape=(), dflt=0.0, pos=6) bxraw = t.Float32Col(shape=(3564, ), dflt=0.0, pos=7) bx = t.Float32Col(shape=(3564, ), dflt=0.0, pos=8)
class trial_info_particle(tables.IsDescription): '''PyTables particle for recording digital input (taste) trial info/order ''' trial_num = tables.UInt16Col() channel = tables.Int16Col() name = tables.StringCol(20) on_index = tables.Int32Col() off_index = tables.Int32Col() on_time = tables.Float32Col() off_time = tables.Float32Col()
class e2ed(tables.IsDescription): """ end-to-end distance data along the time trjectory VERY STRANGE: docstring doesn't work for subclass of tables.IsDescription 2012-12-13 """ time = tables.Float32Col(pos=0) e2ed = tables.Float32Col(pos=1) e2edx = tables.Float32Col(pos=2) e2edy = tables.Float32Col(pos=3) e2edz = tables.Float32Col(pos=4)
class VIRUSImage(tb.IsDescription): wavelength = tb.Float32Col((112, 1032)) trace = tb.Float32Col((112, 1032)) Amp2Amp = tb.Float32Col((112, 1036)) Throughput = tb.Float32Col((112, 1036)) ifupos = tb.Float32Col((112, 2)) ifuslot = tb.Int32Col() ifuid = tb.StringCol(3) specid = tb.StringCol(3) amp = tb.StringCol(2)
class ResultRecordKW(tables.IsDescription): """ Kruskal Wallis """ chromosome = tables.Int32Col() position = tables.Int32Col() score = tables.Float64Col() maf = tables.Float32Col() mac = tables.Int32Col() statistic = tables.Float32Col()