#NEWLINE# def read_units( self , fid ) : #NEWLINE# #INDENT# 'Read units from an acclaim skeleton file stream.' #NEWLINE# lin = self . read_line ( fid ) #NEWLINE# while ( lin [ 0 ] != ':' ) : #NEWLINE# #INDENT# parts = lin . split ( ) #NEWLINE# if ( parts [ 0 ] == 'mass' ) : #NEWLINE# #INDENT# self . mass = float ( parts [ 1 ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( parts [ 0 ] == 'length' ) : #NEWLINE# #INDENT# self . length = float ( parts [ 1 ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( parts [ 0 ] == 'angle' ) : #NEWLINE# #INDENT# self . angle = parts [ 1 ] #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# lin = self . read_line ( fid ) #NEWLINE# #UNINDENT# return lin