mailr12497 - /branches/bmrb/specific_fns/model_free/bmrb.py


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

Header


Content

Posted by edward on February 01, 2011 - 20:29:
Author: bugman
Date: Tue Feb  1 20:29:43 2011
New Revision: 12497

URL: http://svn.gna.org/viewcvs/relax?rev=12497&view=rev
Log:
A fix for BMRB files with no relaxation data - Rex cannot be scaled to the 
correct value!!!


Modified:
    branches/bmrb/specific_fns/model_free/bmrb.py

Modified: branches/bmrb/specific_fns/model_free/bmrb.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bmrb/specific_fns/model_free/bmrb.py?rev=12497&r1=12496&r2=12497&view=diff
==============================================================================
--- branches/bmrb/specific_fns/model_free/bmrb.py (original)
+++ branches/bmrb/specific_fns/model_free/bmrb.py Tue Feb  1 20:29:43 2011
@@ -161,7 +161,9 @@
                 ts_scale = te_scale
 
             # Rex scaling.
-            rex_scale = 1.0 / (2.0*pi*cdp.frq[0]**2)
+            rex_scale = 1.0
+            if hasattr(cdp, 'frq') and len(cdp.frq):
+                rex_scale = 1.0 / (2.0*pi*cdp.frq[0]**2)
 
             # Loop over the spins.
             for i in range(N):




Related Messages


Powered by MHonArc, Updated Tue Feb 01 21:00:02 2011