#NEWLINE# def addData( self , other , index ) : #NEWLINE# #INDENT# 'Add data to a larger cube from a smaller cube' #NEWLINE# xoffset = ( index [ 0 ] * other . xdim ) #NEWLINE# yoffset = ( index [ 1 ] * other . ydim ) #NEWLINE# zoffset = ( index [ 2 ] * other . zdim ) #NEWLINE# self . data [ zoffset : ( zoffset + other . zdim ) , yoffset : ( yoffset + other . ydim ) , xoffset : ( xoffset + other . xdim ) ] = other . data [ : , : , : ]