mailr13106 - /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 edward on June 17, 2011 - 14:50:
Author: bugman
Date: Fri Jun 17 14:50:41 2011
New Revision: 13106

URL: http://svn.gna.org/viewcvs/relax?rev=13106&view=rev
Log:
Changing the name of the user function __parse_models() to 
__parse_models_pdb()

This is Han's patch https://gna.org/task/download.php?file_id=13250 attached 
to the task
http://gna.org/task/?7404.

The name of the user function __parse_models() in 
'generic_fns/structure/internal.py' has been
changed to __parse_models_pdb().  This function is specific for reading the 
pdb files.


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=13106&r1=13105&r2=13106&view=diff
==============================================================================
--- branches/xyz/generic_fns/structure/internal.py (original)
+++ branches/xyz/generic_fns/structure/internal.py Fri Jun 17 14:50:41 2011
@@ -236,7 +236,7 @@
             return 'Average vector'
 
 
-    def __parse_models(self, file_path):
+    def __parse_models_pdb(self, file_path):
         """Generator function for looping over the models in the PDB file.
 
         @param file_path:   The full path of the PDB file.
@@ -731,7 +731,7 @@
         model_index = 0
         orig_model_num = []
         mol_conts = []
-        for model_num, model_records in self.__parse_models(file_path):
+        for model_num, model_records in self.__parse_models_pdb(file_path):
             # Only load the desired model.
             if read_model and model_num not in read_model:
                 continue




Related Messages


Powered by MHonArc, Updated Fri Jun 17 16:00:02 2011