#NEWLINE# @ animate #NEWLINE# def test_flow_anim( obj = None ) : #NEWLINE# #INDENT# obj = ( obj if ( obj is not None ) else test_flow_tubes ( ) ) #NEWLINE# ms = obj . mlab_source #NEWLINE# ( x , y , z ) = ( ms . x , ms . y , ms . z ) #NEWLINE# for i in range ( 10 ) : #NEWLINE# #INDENT# u = numpy . cos ( ( ( x / 2.0 ) + ( ( numpy . pi * ( i + 1 ) ) / 10.0 ) ) ) #NEWLINE# w = numpy . sin ( ( ( ( x * z ) / 4.0 ) + ( ( numpy . pi * ( i + 1 ) ) / 10.0 ) ) ) #NEWLINE# ms . set ( u = obj , w = w ) #NEWLINE# ( yield )