#NEWLINE# def __init__( self , var_list ) : #NEWLINE# #INDENT# import h5py , numpy #NEWLINE# self . _vars = [ ] #NEWLINE# self . _records = 0 #NEWLINE# self . _starts = [ ] #NEWLINE# self . _stops = [ ] #NEWLINE# agg_shape = None #NEWLINE# for var in var_list : #NEWLINE# #INDENT# vv = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# vv [ 'data' ] = var #NEWLINE# shape = var . shape #NEWLINE# vv [ 'shape' ] = shape #NEWLINE# agg_shape = ( agg_shape or shape [ 1 : ] ) #NEWLINE# assert ( agg_shape == shape [ 1 : ] ) #NEWLINE# vv [ 'records' ] = shape [ 0 ] #NEWLINE# self . _starts . append ( self . _records ) #NEWLINE# self . _records += shape [ 0 ] #NEWLINE# self . _stops . append ( ( self . _records - 1 ) ) #NEWLINE# self . _vars . append ( vv ) #NEWLINE# #UNINDENT# self . _agg_shape = agg_shape #NEWLINE# self . _shape = ( ( self . _records , ) + self . _agg_shape )