mailr7973 - /1.3/specific_fns/model_free/main.py


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

Header


Content

Posted by edward on November 10, 2008 - 23:36:
Author: bugman
Date: Mon Nov 10 23:36:36 2008
New Revision: 7973

URL: http://svn.gna.org/viewcvs/relax?rev=7973&view=rev
Log:
Fix for bug #12582 (https://gna.org/bugs/index.php?12582).

This was reported by Chris Brosey (chris dot a dot brosey att vanderbilt dot 
edu).

The problem was that the frq_labels data structure in the SpinContainer was 
sometimes set to []
rather than the data structure being missing.  Now the structure is being 
tested if it is either
None or [] before being accessed in the model-free return_units() method.


Modified:
    1.3/specific_fns/model_free/main.py

Modified: 1.3/specific_fns/model_free/main.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/model_free/main.py?rev=7973&r1=7972&r2=7973&view=diff
==============================================================================
--- 1.3/specific_fns/model_free/main.py (original)
+++ 1.3/specific_fns/model_free/main.py Mon Nov 10 23:36:36 2008
@@ -2335,7 +2335,7 @@
             return 'ps'
 
         # Rex (value at 1st field strength).
-        elif object_name == 'rex' and hasattr(spin, 'frq_labels'):
+        elif object_name == 'rex' and hasattr(spin, 'frq_labels') and 
spin.frq_labels != None and len(spin.frq_labels):
             return spin.frq_labels[0] + ' MHz'
 
         # Bond length (Angstrom).




Related Messages


Powered by MHonArc, Updated Wed Nov 12 00:00:05 2008