mailr9945 - /1.3/specific_fns/model_free/main.py


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

Header


Content

Posted by edward on November 24, 2009 - 19:26:
Author: bugman
Date: Tue Nov 24 19:26:08 2009
New Revision: 9945

URL: http://svn.gna.org/viewcvs/relax?rev=9945&view=rev
Log:
Converted the private __compare_objects() method to the non-API 
_compare_objects() method.


Modified:
    1.3/specific_fns/model_free/main.py

Modified: 1.3/specific_fns/model_free/main.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/model_free/main.py?rev=9945&r1=9944&r2=9945&view=diff
==============================================================================
--- 1.3/specific_fns/model_free/main.py (original)
+++ 1.3/specific_fns/model_free/main.py Tue Nov 24 19:26:08 2009
@@ -44,7 +44,7 @@
 class Model_free_main:
     """Class containing functions specific to model-free analysis."""
 
-    def __compare_objects(self, object_from, object_to, pipe_from, pipe_to):
+    def _compare_objects(self, object_from, object_to, pipe_from, pipe_to):
         """Compare the contents of the two objects and raise RelaxErrors if 
they are not the same.
 
         @param object_from: The first object.
@@ -1149,7 +1149,7 @@
             # Otherwise compare the objects inside the container.
             else:
                 # Modifiable object checks.
-                self.__compare_objects(dp_from.structure, dp_to.structure, 
pipe_from, pipe_to)
+                self._compare_objects(dp_from.structure, dp_to.structure, 
pipe_from, pipe_to)
 
                 # Tests for the model and molecule containers.
                 if len(dp_from.structure.structural_data) != 
len(dp_from.structure.structural_data):
@@ -1172,7 +1172,7 @@
                     # Loop over the models.
                     for mol_index in range(len(model_from.mol)):
                         # Modifiable object checks.
-                        self.__compare_objects(model_from.mol[mol_index], 
model_to.mol[mol_index], pipe_from, pipe_to)
+                        self._compare_objects(model_from.mol[mol_index], 
model_to.mol[mol_index], pipe_from, pipe_to)
 
         # No sequence data, so skip the rest.
         if dp_from.mol.is_empty():




Related Messages


Powered by MHonArc, Updated Tue Nov 24 19:40:03 2009