mailr12707 - in /branches/relax_data/data: mol_res_spin.py pipe_container.py prototype.py


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

Header


Content

Posted by edward on March 02, 2011 - 13:49:
Author: bugman
Date: Wed Mar  2 13:49:51 2011
New Revision: 12707

URL: http://svn.gna.org/viewcvs/relax?rev=12707&view=rev
Log:
All objects starting with '_' are now considered special and skipped, instead 
of just starting with '__'.


Modified:
    branches/relax_data/data/mol_res_spin.py
    branches/relax_data/data/pipe_container.py
    branches/relax_data/data/prototype.py

Modified: branches/relax_data/data/mol_res_spin.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_data/data/mol_res_spin.py?rev=12707&r1=12706&r2=12707&view=diff
==============================================================================
--- branches/relax_data/data/mol_res_spin.py (original)
+++ branches/relax_data/data/mol_res_spin.py Wed Mar  2 13:49:51 2011
@@ -70,7 +70,7 @@
                 continue
 
             # Skip special objects.
-            if match("^__", name):
+            if match("^_", name):
                 continue
 
             # Add the object's attribute to the text string.
@@ -157,7 +157,7 @@
                 continue
 
             # Skip special objects.
-            if match("^__", name):
+            if match("^_", name):
                 continue
 
             # An object has been added.
@@ -382,7 +382,7 @@
                 continue
 
             # Skip special objects.
-            if match("^__", name):
+            if match("^_", name):
                 continue
 
             # Add the object's attribute to the text string.
@@ -414,7 +414,7 @@
                 continue
 
             # Skip special objects.
-            if match("^__", name):
+            if match("^_", name):
                 continue
 
             # An object has been added.
@@ -599,7 +599,7 @@
                 continue
 
             # Skip special objects.
-            if match("^__", name):
+            if match("^_", name):
                 continue
 
             # Add the object's attribute to the text string.
@@ -631,7 +631,7 @@
                 continue
 
             # Skip special objects.
-            if match("^__", name):
+            if match("^_", name):
                 continue
 
             # An object has been added.

Modified: branches/relax_data/data/pipe_container.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_data/data/pipe_container.py?rev=12707&r1=12706&r2=12707&view=diff
==============================================================================
--- branches/relax_data/data/pipe_container.py (original)
+++ branches/relax_data/data/pipe_container.py Wed Mar  2 13:49:51 2011
@@ -271,7 +271,7 @@
                 continue
 
             # Skip special objects.
-            if match("^__", name):
+            if match("^_", name):
                 continue
 
             # An object has been added.

Modified: branches/relax_data/data/prototype.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_data/data/prototype.py?rev=12707&r1=12706&r2=12707&view=diff
==============================================================================
--- branches/relax_data/data/prototype.py (original)
+++ branches/relax_data/data/prototype.py Wed Mar  2 13:49:51 2011
@@ -40,8 +40,8 @@
 
         # Loop over all objects in self and make deepcopies of them.
         for name in dir(self):
-            # Skip all names begining with '__'.
-            if search('^__', name):
+            # Skip all names begining with '_'.
+            if search('^_', name):
                 continue
 
             # Skip the class methods.




Related Messages


Powered by MHonArc, Updated Wed Mar 02 14:20:02 2011