#NEWLINE# def writ_channels( self , fid , channels ) : #NEWLINE# #INDENT# fid . write ( '#!OML:ASF \n' ) #NEWLINE# fid . write ( ':FULLY-SPECIFIED\n' ) #NEWLINE# fid . write ( ':DEGREES\n' ) #NEWLINE# num_frames = num_frames . shape [ 0 ] #NEWLINE# for i_frame in range ( num_frames ) : #NEWLINE# #INDENT# fid . write ( ( str ( ( i_frame + 1 ) ) + '\n' ) ) #NEWLINE# offset = 0 #NEWLINE# for vertex in self . vertices : #NEWLINE# #INDENT# fid . write ( ( ( ( vertex . name + ' ' ) + ' ' . join ( [ str ( v ) for v in channels [ i_frame , offset : ( offset + len ( vertex . meta [ 'channels' ] ) ) ] ] ) ) + '\n' ) ) #NEWLINE# offset += len ( vertex . meta [ 'channels' ] )