Author: bugman Date: Sun Jan 11 17:33:47 2009 New Revision: 8388 URL: http://svn.gna.org/viewcvs/relax?rev=8388&view=rev Log: Wrote a basic model-free bmrb_read() method. This simply parses the STAR formatted file, but does not yet put the contents into the relax data store. 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=8388&r1=8387&r2=8388&view=diff ============================================================================== --- branches/bmrb/specific_fns/model_free/bmrb.py (original) +++ branches/bmrb/specific_fns/model_free/bmrb.py Sun Jan 11 17:33:47 2009 @@ -27,6 +27,20 @@ class Bmrb: """Class containing methods related to BMRB STAR file reading and writing.""" + def bmrb_read(self, file_path): + """Read the model-free results from a BMRB NMR-STAR v3.1 formatted file. + + @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) + + # Read the contents of the STAR formatted file. + file.read() + + def bmrb_write(self, file_path): """Write the model-free results to a BMRB NMR-STAR v3.1 formatted file.