#NEWLINE# def _grid_shape_source_changed( self ) : #NEWLINE# #INDENT# if ( not ( self . grid_shape_source == '' ) ) : #NEWLINE# #INDENT# array_shape = atleast_3d ( self . data_sources [ grid_shape . grid_shape_source ] ) . shape #NEWLINE# grid_shape = ones ( ( 3 , ) ) #NEWLINE# grid_shape [ : len ( array_shape ) ] = array_shape #NEWLINE# self . grid_shape = grid_shape