mailr7408 - /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 - 16:39:
Author: bugman
Date: Sat Sep 27 16:39:36 2008
New Revision: 7408

URL: http://svn.gna.org/viewcvs/relax?rev=7408&view=rev
Log:
Fix for the atom_loop() method needed because of the load_pdb() changes.


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=7408&r1=7407&r2=7408&view=diff
==============================================================================
--- 1.3/generic_fns/structure/internal.py (original)
+++ 1.3/generic_fns/structure/internal.py Sat Sep 27 16:39:36 2008
@@ -697,7 +697,7 @@
         # Individual structure mode.
         else:
             # Loop over the models.
-            for c in xrange(len(self.structural_data)):
+            for c in xrange(self.num):
                 # Explicit structure identifier.
                 if type(str_id) == int:
                     if str_id != c:
@@ -715,9 +715,9 @@
                     # Build the tuple to be yielded.
                     atomic_tuple = ()
                     if model_num_flag:
-                        atomic_tuple = atomic_tuple + (struct.model,)
+                        atomic_tuple = atomic_tuple + (self.model[c],)
                     if mol_name_flag:
-                        atomic_tuple = atomic_tuple + (None,)
+                        atomic_tuple = atomic_tuple + (self.name[c],)
                     if res_num_flag:
                         atomic_tuple = atomic_tuple + (struct.res_num[i],)
                     if res_name_flag:




Related Messages


Powered by MHonArc, Updated Sat Sep 27 17:00:07 2008