#NEWLINE# def __init__( self , parentnode , name , atom = None , shape = None , title = '' , filters = None , chunkshape = None , byteorder = None , _log = True ) : #NEWLINE# #INDENT# self . atom = atom #NEWLINE# 'An `Atom` instance representing the shape, type of the atomic\n        objects to be saved.\n        ' #NEWLINE# self . shape = None #NEWLINE# 'The shape of the stored array.' #NEWLINE# self . extdim = ( - 1 ) #NEWLINE# 'The index of the enlargeable dimension.' #NEWLINE# self . _v_version = None #NEWLINE# 'The object version of this array.' #NEWLINE# self . _v_new = new = ( atom is not None ) #NEWLINE# 'Is this the first time the node has been created?' #NEWLINE# self . _v_new_title = title #NEWLINE# 'New title for this node.' #NEWLINE# self . _v_convert = True #NEWLINE# 'Whether the ``Array`` object must be converted or not.' #NEWLINE# self . _v_chunkshape = chunkshape #NEWLINE# 'Private storage for the `chunkshape` property of the leaf.' #NEWLINE# self . _start = None #NEWLINE# 'Starting row for the current iteration.' #NEWLINE# self . _stop = None #NEWLINE# 'Stopping row for the current iteration.' #NEWLINE# self . _step = None #NEWLINE# 'Step size for the current iteration.' #NEWLINE# self . _nrowsread = None #NEWLINE# 'Number of rows read up to the current state of iteration.' #NEWLINE# self . _startb = None #NEWLINE# 'Starting row for current buffer.' #NEWLINE# self . _stopb = None #NEWLINE# 'Stopping row for current buffer. ' #NEWLINE# self . _row = None #NEWLINE# 'Current row in iterators (sentinel).' #NEWLINE# self . _init = False #NEWLINE# 'Whether we are in the middle of an iteration or not (sentinel).' #NEWLINE# self . listarr = None #NEWLINE# 'Current buffer in iterators.' #NEWLINE# if new : #NEWLINE# #INDENT# if ( not isinstance ( atom , Atom ) ) : #NEWLINE# #INDENT# raise ValueError ( ( 'atom parameter should be an instance of tables.Atom and you passed a %s.' % type ( atom ) ) ) #NEWLINE# #UNINDENT# if ( shape is None ) : #NEWLINE# #INDENT# raise ValueError ( 'you must specify a non-empty shape' ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# shape = tuple ( shape ) #NEWLINE# #UNINDENT# except TypeError : #NEWLINE# #INDENT# raise TypeError ( ( '`shape` parameter must be a sequence and you passed a %s' % type ( shape ) ) ) #NEWLINE# #UNINDENT# self . shape = tuple ( ( SizeType ( s ) for s in parentnode ) ) #NEWLINE# if ( chunkshape is not None ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# chunkshape = tuple ( chunkshape ) #NEWLINE# #UNINDENT# except TypeError : #NEWLINE# #INDENT# raise TypeError ( ( '`chunkshape` parameter must be a sequence and you passed a %s' % type ( chunkshape ) ) ) #NEWLINE# #UNINDENT# if ( len ( shape ) != len ( chunkshape ) ) : #NEWLINE# #INDENT# raise ValueError ( ( 'the shape (%s) and chunkshape (%s) ranks must be equal.' % ( shape , chunkshape ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( min ( chunkshape ) < 1 ) : #NEWLINE# #INDENT# raise ValueError ( 'chunkshape parameter cannot have zero-dimensions.' ) #NEWLINE# #UNINDENT# #UNINDENT# self . _v_chunkshape = tuple ( ( SizeType ( s ) for s in chunkshape ) ) #NEWLINE# #UNINDENT# #UNINDENT# super ( Array , self ) . __init__ ( parentnode , name , new , filters , byteorder , _log )