mailr9115 - /branches/frame_order/specific_fns/frame_order.py


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

Header


Content

Posted by edward on June 19, 2009 - 17:21:
Author: bugman
Date: Fri Jun 19 17:21:56 2009
New Revision: 9115

URL: http://svn.gna.org/viewcvs/relax?rev=9115&view=rev
Log:
Parameter values are initialised to zero so that a grid search is not 
necessary.


Modified:
    branches/frame_order/specific_fns/frame_order.py

Modified: branches/frame_order/specific_fns/frame_order.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/frame_order/specific_fns/frame_order.py?rev=9115&r1=9114&r2=9115&view=diff
==============================================================================
--- branches/frame_order/specific_fns/frame_order.py (original)
+++ branches/frame_order/specific_fns/frame_order.py Fri Jun 19 17:21:56 2009
@@ -111,10 +111,14 @@
                 cdp.params.append('theta')
 
             # Initialise the Euler angle and cone angle values.
-            cdp.alpha = None
-            cdp.beta = None
-            cdp.gamma = None
-            cdp.theta = None
+            if not hasattr(cdp, 'alpha'):
+                cdp.alpha = 0.0
+            if not hasattr(cdp, 'beta'):
+                cdp.beta = 0.0
+            if not hasattr(cdp, 'gamma'):
+                cdp.gamma = 0.0
+            if not hasattr(cdp, 'theta'):
+                cdp.theta = 0.0
 
 
     def __unpack_opt_results(self, results, sim_index=None):




Related Messages


Powered by MHonArc, Updated Fri Jun 19 17:40:03 2009