#NEWLINE# def test_map2Dto3D_z( self ) : #NEWLINE# #INDENT# M2 = Mesh . TensorMesh ( [ 3 , 2 ] ) #NEWLINE# M3 = Mesh . TensorMesh ( [ 3 , 2 , 4 ] ) #NEWLINE# m = np . random . rand ( M2 . nC ) #NEWLINE# for m2to3 in [ Maps . Surject2Dto3D ( self , normal = 'Z' ) , Maps . Map2Dto3D ( M3 , normal = 'Z' ) ] : #NEWLINE# #INDENT# m = np . arange ( m2to3 . nP ) #NEWLINE# self . assertTrue ( m2to3 . test ( ) ) #NEWLINE# self . assertTrue ( np . all ( ( Utils . mkvc ( ( m2to3 * m ) . reshape ( M3 . vnC , order = 'F' ) [ : , : , 0 ] ) == m ) ) )