mailr6458 - /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 June 23, 2008 - 22:47:
Author: bugman
Date: Mon Jun 23 22:40:56 2008
New Revision: 6458

URL: http://svn.gna.org/viewcvs/relax?rev=6458&view=rev
Log:
return_units() only fails if the spin or spin_id is missing when the 'rex' 
parameter is asked for.


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=6458&r1=6457&r2=6458&view=diff
==============================================================================
--- 1.3/specific_fns/model_free/main.py (original)
+++ 1.3/specific_fns/model_free/main.py Mon Jun 23 22:40:56 2008
@@ -2065,16 +2065,18 @@
         @rtype:         str
         """
 
-        # The spin must be specified to get frequency units.
-        if spin == None and spin_id == None:
-            raise RelaxNoSpinSpecError
-
-        # Get the spin.
-        if not spin:
-            spin = return_spin(spin_id)
-
         # Get the object name.
         object_name = self.return_data_name(param)
+
+        # Test for objects needing the spin container.
+        if object_name in ['rex']:
+            # The spin must be specified to get frequency units.
+            if spin == None and spin_id == None:
+                raise RelaxNoSpinSpecError
+
+            # Get the spin.
+            if not spin:
+                spin = return_spin(spin_id)
 
         # tm (nanoseconds).
         if object_name == 'tm' or object_name == 'local_tm':




Related Messages


Powered by MHonArc, Updated Mon Jun 23 23:00:38 2008