Author: bugman Date: Fri Aug 1 11:39:55 2008 New Revision: 7060 URL: http://svn.gna.org/viewcvs/relax?rev=7060&view=rev Log: Converted the diplay() method to the new design and into a module function. Modified: 1.3/generic_fns/value.py Modified: 1.3/generic_fns/value.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/value.py?rev=7060&r1=7059&r2=7060&view=diff ============================================================================== --- 1.3/generic_fns/value.py (original) +++ 1.3/generic_fns/value.py Fri Aug 1 11:39:55 2008 @@ -98,6 +98,25 @@ reset_min_stats(pipe_to) +def display(param=None): + """Function for displaying residue specific data values. + + @param param: The name of the parameter to display. + @type param: str + """ + + # Test if the current pipe exists. + if not ds.current_pipe: + raise RelaxNoPipeError + + # Test if the sequence data is loaded. + if not exists_mol_res_spin_data(): + raise RelaxNoSequenceError + + # Print the data. + write_data(param, sys.stdout) + + def partition_params(val, param): """Function for sorting and partitioning the parameters and their values. @@ -393,24 +412,6 @@ self.relax = relax - def display(self, param=None): - """Function for displaying residue specific data values.""" - - # Arguments. - self.param = param - - # Test if the current pipe exists. - if not ds.current_pipe: - raise RelaxNoPipeError - - # Test if the sequence data is loaded. - if not exists_mol_res_spin_data(): - raise RelaxNoSequenceError - - # Print the data. - self.write_data(sys.stdout) - - def read(self, param=None, scaling=1.0, file=None, num_col=0, name_col=1, data_col=2, error_col=3, sep=None): """Function for reading residue specific data values from a file."""