mailr7418 - /1.3/generic_fns/structure/internal.py


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

Header


Content

Posted by edward on September 27, 2008 - 19:53:
Author: bugman
Date: Sat Sep 27 19:53:15 2008
New Revision: 7418

URL: http://svn.gna.org/viewcvs/relax?rev=7418&view=rev
Log:
Fix for the __add_struct() method.

The structure was not being added if struct_index was supplied.


Modified:
    1.3/generic_fns/structure/internal.py

Modified: 1.3/generic_fns/structure/internal.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/structure/internal.py?rev=7418&r1=7417&r2=7418&view=diff
==============================================================================
--- 1.3/generic_fns/structure/internal.py (original)
+++ 1.3/generic_fns/structure/internal.py Sat Sep 27 19:53:15 2008
@@ -97,6 +97,14 @@
             self.model.append(model)
             self.file.append(file)
             self.path.append(path)
+
+        # Add the structural data.
+        if struct_index != None:
+            if struct_index >= len(self.structural_data):
+                self.structural_data.append(str)
+            else:
+                self.structural_data[struct_index] = str
+        else:
             self.structural_data.append(str)
 
 




Related Messages


Powered by MHonArc, Updated Sat Sep 27 20:00:06 2008