mailr7145 - /branches/rdc_analysis/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 August 11, 2008 - 18:12:
Author: bugman
Date: Mon Aug 11 15:11:40 2008
New Revision: 7145

URL: http://svn.gna.org/viewcvs/relax?rev=7145&view=rev
Log:
The structure identifier arg is now used by the atom_loop() method.


Modified:
    branches/rdc_analysis/generic_fns/structure/internal.py

Modified: branches/rdc_analysis/generic_fns/structure/internal.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/rdc_analysis/generic_fns/structure/internal.py?rev=7145&r1=7144&r2=7145&view=diff
==============================================================================
--- branches/rdc_analysis/generic_fns/structure/internal.py (original)
+++ branches/rdc_analysis/generic_fns/structure/internal.py Mon Aug 11 
15:11:40 2008
@@ -607,7 +607,15 @@
         # Individual structure mode.
         else:
             # Loop over the models.
-            for struct in self.structural_data:
+            for c in xrange(len(self.structural_data)):
+                # Explicit structure identifier.
+                if type(str_id) == int:
+                    if str_id != c:
+                        continue
+
+                # Alias the structural data.
+                struct = self.structural_data[c]
+
                 # Loop over all atoms.
                 for i in xrange(len(struct.atom_name)):
                     # Skip non-matching atoms.




Related Messages


Powered by MHonArc, Updated Mon Aug 11 19:40:34 2008