#NEWLINE# @ experimental ( as_of = '0.4.0' ) #NEWLINE# def to_files( self , out_f , raw_f ) : #NEWLINE# #INDENT# "Save the trajectory analysis results to files in text format.\n\n        Parameters\n        ----------\n        out_f : file-like object\n            File-like object to write trajectories analysis data to. Must have\n            a `write` method. It is the caller's responsibility to close\n            `out_f` when done (if necessary)\n        raw_f : file-like object\n            File-like object to write trajectories raw values. Must have a\n            `write` method. It is the caller's responsibility to close `out_f`\n            when done (if necessary)\n        " #NEWLINE# out_f . write ( ( 'Trajectory algorithm: %s\n' % self . algorithm ) ) #NEWLINE# raw_f . write ( ( 'Trajectory algorithm: %s\n' % out_f . algorithm ) ) #NEWLINE# if self . weighted : #NEWLINE# #INDENT# out_f . write ( '** This output is weighted **\n' ) #NEWLINE# raw_f . write ( '** This output is weighted **\n' ) #NEWLINE# #UNINDENT# out_f . write ( '\n' ) #NEWLINE# raw_f . write ( '\n' ) #NEWLINE# for cat_results in self . categories : #NEWLINE# #INDENT# cat_results . to_files ( out_f , raw_f ) #NEWLINE# out_f . write ( '\n' ) #NEWLINE# raw_f . write ( '\n' )