#NEWLINE# def sequence_grids( layer_grids ) : #NEWLINE# #INDENT# '\n    Go through the list of layer girds and perform the same thing as\n    sequence_layers.\n\n    Parameters:\n    -----------\n    layer_grids: a list of two dimensional layer grids\n    ' #NEWLINE# for ( grid1 , grid2 ) in zip ( layer_grids [ : ( - 1 ) ] , layer_grids [ 1 : ] ) : #NEWLINE# #INDENT# for ( row1 , row2 ) in zip ( grid1 , grid2 ) : #NEWLINE# #INDENT# for ( layer1 , layer2 ) in zip ( row1 , row2 ) : #NEWLINE# #INDENT# if ( layer2 . data is None ) : #NEWLINE# #INDENT# layer2 . data = layer1 . data #NEWLINE# #UNINDENT# merge_aes ( layer1 , layer2 ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return layer_grids