mailr6451 - /1.3/data/mol_res_spin.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 - 01:08:
Author: bugman
Date: Mon Jun 23 00:12:24 2008
New Revision: 6451

URL: http://svn.gna.org/viewcvs/relax?rev=6451&view=rev
Log:
Bug fix for the xml_create_element() method for when the data_names() 
function is None.


Modified:
    1.3/data/mol_res_spin.py

Modified: 1.3/data/mol_res_spin.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/data/mol_res_spin.py?rev=6451&r1=6450&r2=6451&view=diff
==============================================================================
--- 1.3/data/mol_res_spin.py (original)
+++ 1.3/data/mol_res_spin.py Mon Jun 23 00:12:24 2008
@@ -201,12 +201,13 @@
 
         # Get the object names and loop over them to get their descriptions.
         object_info = []
-        for name in data_names():
-            # Get the description.
-            desc = return_data_desc(name)
-
-            # Append the two.
-            object_info.append([name, desc])
+        if data_names:
+            for name in data_names():
+                # Get the description.
+                desc = return_data_desc(name)
+
+                # Append the two.
+                object_info.append([name, desc])
 
         # Loop over the spins.
         for i in xrange(len(self)):




Related Messages


Powered by MHonArc, Updated Mon Jun 23 01:20:10 2008