mailr7092 - /branches/rdc_analysis/generic_fns/pcs.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on August 08, 2008 - 06:12:
Author: bugman
Date: Thu Aug  7 19:53:10 2008
New Revision: 7092

URL: http://svn.gna.org/viewcvs/relax?rev=7092&view=rev
Log:
Removed a useless function.


Modified:
    branches/rdc_analysis/generic_fns/pcs.py

Modified: branches/rdc_analysis/generic_fns/pcs.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/rdc_analysis/generic_fns/pcs.py?rev=7092&r1=7091&r2=7092&view=diff
==============================================================================
--- branches/rdc_analysis/generic_fns/pcs.py (original)
+++ branches/rdc_analysis/generic_fns/pcs.py Thu Aug  7 19:53:10 2008
@@ -713,30 +713,6 @@
     return value, error
 
 
-def test_labels(ri_label, frq_label):
-    """Test if data corresponding to 'ri_label' and 'frq_label' currently 
exists.
-
-    @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_pipe(ri_label=None, frq_label=None, frq=None):
     """Function for updating all relaxation data structures in the current 
data pipe.
 




Related Messages


Powered by MHonArc, Updated Fri Aug 08 07:00:20 2008