#NEWLINE# def write_array( filename , nchildren , niter ) : #NEWLINE# #INDENT# for i in range ( niter ) : #NEWLINE# #INDENT# fileh = tables . open_file ( filename , mode = 'w' ) #NEWLINE# for child in range ( nchildren ) : #NEWLINE# #INDENT# fileh . create_array ( fileh . root , ( 'array' + str ( child ) ) , [ 1 , 1 ] , ( 'child: %d' % child ) ) #NEWLINE# #UNINDENT# show_mem ( ( 'After creating. Iter %s' % i ) ) #NEWLINE# fileh . close ( ) #NEWLINE# show_mem ( 'After close' )