mailr9535 - /1.3/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 September 18, 2009 - 18:32:
Author: bugman
Date: Fri Sep 18 18:32:41 2009
New Revision: 9535

URL: http://svn.gna.org/viewcvs/relax?rev=9535&view=rev
Log:
Fix for the data_names() method for when no model has been setup.

This allows the frame order data pipe to be written out prior to the model 
setup.


Modified:
    1.3/specific_fns/frame_order.py

Modified: 1.3/specific_fns/frame_order.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/frame_order.py?rev=9535&r1=9534&r2=9535&view=diff
==============================================================================
--- 1.3/specific_fns/frame_order.py (original)
+++ 1.3/specific_fns/frame_order.py Fri Sep 18 18:32:41 2009
@@ -524,7 +524,7 @@
             names.append('gamma')
 
             # The isotropic cone model.
-            if cdp.model == 'iso cone':
+            if hasattr(cdp, 'model') and cdp.model == 'iso cone':
                 names.append('theta_axis')
                 names.append('phi_axis')
                 names.append('theta_cone')
@@ -545,7 +545,7 @@
             names.append('gamma_err')
 
             # The isotropic cone model.
-            if cdp.model == 'iso cone':
+            if hasattr(cdp, 'model') and  cdp.model == 'iso cone':
                 names.append('theta_axis_err')
                 names.append('phi_axis_err')
                 names.append('theta_cone_err')
@@ -557,7 +557,7 @@
             names.append('gamma_sim')
 
             # The isotropic cone model.
-            if cdp.model == 'iso cone':
+            if hasattr(cdp, 'model') and  cdp.model == 'iso cone':
                 names.append('theta_axis_sim')
                 names.append('phi_axis_sim')
                 names.append('theta_cone_sim')




Related Messages


Powered by MHonArc, Updated Fri Sep 18 19:00:02 2009