#NEWLINE# def write( self , prefix = 'eval_mats' , path = None ) : #NEWLINE# #INDENT# 'Writes the <prefix>.m file to disc at the give path location.' #NEWLINE# if ( path is None ) : #NEWLINE# #INDENT# path = os . getcwd ( ) #NEWLINE# #UNINDENT# text = self . doprint ( prefix = prefix ) #NEWLINE# with open ( os . path . join ( path , ( text + '.m' ) ) , 'w' ) as f : #NEWLINE# #INDENT# f . write ( text )