Author: bugman Date: Tue Mar 1 17:25:20 2011 New Revision: 12654 URL: http://svn.gna.org/viewcvs/relax?rev=12654&view=rev Log: Removal of the test_labels() function, as this was only needed with the old design. Modified: branches/relax_data/generic_fns/relax_data.py Modified: branches/relax_data/generic_fns/relax_data.py URL: http://svn.gna.org/viewcvs/relax/branches/relax_data/generic_fns/relax_data.py?rev=12654&r1=12653&r2=12654&view=diff ============================================================================== --- branches/relax_data/generic_fns/relax_data.py (original) +++ branches/relax_data/generic_fns/relax_data.py Tue Mar 1 17:25:20 2011 @@ -1065,34 +1065,6 @@ -def test_labels(ri_label, frq_label): - """Test if data corresponding to 'ri_label' and 'frq_label' currently exists. - - @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 answer to the question of whether relaxation data exists corresponding - to the given labels. - @rtype: bool - """ - - # Loop over the spins. - for spin in spin_loop(): - # No ri data. - if not hasattr(spin, 'num_ri'): - continue - - # Loop over the relaxation data. - for j in xrange(spin.num_ri): - # Test if the relaxation data matches 'ri_label' and 'frq_label'. - if ri_label == spin.ri_labels[j] and frq_label == spin.frq_labels[spin.remap_table[j]]: - return True - - # No match. - return False - - def update_data_structures_spin(spin=None, ri_label=None, frq_label=None, frq=None, value=None, error=None): """Update all relaxation data structures of the given spin container.