mailr13227 - /branches/xyz/generic_fns/structure/internal.py


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

Header


Content

Posted by hasu on June 27, 2011 - 09:59:
Author: han87
Date: Mon Jun 27 09:59:35 2011
New Revision: 13227

URL: http://svn.gna.org/viewcvs/relax?rev=13227&view=rev
Log:
Debugging the user function load_spins().

Changing the name from model_increment to xyz_model_increment in the user 
function load_spins() in generic_fns/structure/main.py as suggest in: 
https://mail.gna.org/public/relax-devel/2011-06/msg00240.html.

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

Modified: branches/xyz/generic_fns/structure/internal.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/xyz/generic_fns/structure/internal.py?rev=13227&r1=13226&r2=13227&view=diff
==============================================================================
--- branches/xyz/generic_fns/structure/internal.py (original)
+++ branches/xyz/generic_fns/structure/internal.py Mon Jun 27 09:59:35 2011
@@ -833,17 +833,17 @@
         # Loop over all models in the XYZ file.
         mol_index=0
         model_index = 0
-        model_increment = 0
+        xyz_model_increment = 0
         orig_model_num = []
         mol_conts = []
         orig_mol_num = []
         new_mol_name = []
         for model_records in self.__parse_models_xyz(file_path):
-            # Increment the model_increment
-            model_increment = model_increment +1
+            # Increment the xyz_model_increment
+            xyz_model_increment = xyz_model_increment +1
       
             # Only load the desired model.
-            if read_model and model_increment not in read_model:
+            if read_model and xyz_model_increment not in read_model:
                 continue
 
             # Store the original model number.




Related Messages


Powered by MHonArc, Updated Mon Jun 27 13:00:02 2011