Author: bugman Date: Sun Jan 11 16:41:13 2009 New Revision: 8384 URL: http://svn.gna.org/viewcvs/relax?rev=8384&view=rev Log: The pystarlib File object is now initialised and the write() method called. This produces a relatively empty file. Modified: branches/bmrb/specific_fns/model_free/bmrb.py Modified: branches/bmrb/specific_fns/model_free/bmrb.py URL: http://svn.gna.org/viewcvs/relax/branches/bmrb/specific_fns/model_free/bmrb.py?rev=8384&r1=8383&r2=8384&view=diff ============================================================================== --- branches/bmrb/specific_fns/model_free/bmrb.py (original) +++ branches/bmrb/specific_fns/model_free/bmrb.py Sun Jan 11 16:41:13 2009 @@ -20,13 +20,22 @@ # # ############################################################################### +# relax module imports. +from pystarlib.File import File + class Bmrb: """Class containing methods related to BMRB STAR file reading and writing.""" - def bmrb_write(self, file): + def bmrb_write(self, file_path): """Write the model-free results to a BMRB NMR-STAR v3.1 formatted file. - @param file: The writable file object. - @type file: file object + @param file_path: The full file path. + @type file_path: str """ + + # Initialise the pystarlib File object. + file = File(title='relax_model_free_results', filename=file_path) + + # Write the contents to the STAR formatted file. + file.write()