Author: bugman Date: Thu Nov 5 13:48:57 2009 New Revision: 9869 URL: http://svn.gna.org/viewcvs/relax?rev=9869&view=rev Log: Implemented the get_peak_intensity_type() method for returning that data. Modified: branches/bmrb/data/exp_info.py Modified: branches/bmrb/data/exp_info.py URL: http://svn.gna.org/viewcvs/relax/branches/bmrb/data/exp_info.py?rev=9869&r1=9868&r2=9869&view=diff ============================================================================== --- branches/bmrb/data/exp_info.py (original) +++ branches/bmrb/data/exp_info.py Thu Nov 5 13:48:57 2009 @@ -135,6 +135,23 @@ return i + 1 + def get_peak_intensity_type(self, ri_label, frq_label): + """Return the peak intensity type for the given relaxation data. + + @param ri_label: The relaxation data type, ie 'R1', 'R2', or 'NOE'. + @type ri_label: str + @param frq_label: The field strength label. + @type frq_label: str + @return: The peak intensity type. + @rtype: str + """ + + # Find the matching container. + for i in range(len(self.peak_intensity_type)): + if self.peak_intensity_type[i].ri_label == ri_label and self.peak_intensity_type[i].frq_label == frq_label: + return self.peak_intensity_type[i].type + + def get_temp_calibration(self, ri_label, frq_label): """Return the temperature calibration method.