mailr7336 - /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 September 26, 2008 - 14:36:
Author: bugman
Date: Fri Sep 26 14:36:12 2008
New Revision: 7336

URL: http://svn.gna.org/viewcvs/relax?rev=7336&view=rev
Log:
Skipped the structural object base class methods as well now in 
duplicate_data().


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=7336&r1=7335&r2=7336&view=diff
==============================================================================
--- 1.3/specific_fns/model_free/main.py (original)
+++ 1.3/specific_fns/model_free/main.py Fri Sep 26 14:36:12 2008
@@ -1043,8 +1043,8 @@
             else:
                 # Loop over the modifiable objects.
                 for data_name in dir(ds[pipe_from].structure):
-                    # Skip special objects.
-                    if search('^_', data_name) or data_name in 
ds[pipe_from].structure.__class__.__dict__.keys():
+                    # Skip special objects (starting with _, or in the 
original class and base class namespaces).
+                    if search('^_', data_name) or data_name in 
ds[pipe_from].structure.__class__.__dict__.keys() or data_name in 
ds[pipe_from].structure.__class__.__bases__[0].__dict__.keys():
                         continue
 
                     # Get the original object.




Related Messages


Powered by MHonArc, Updated Fri Sep 26 14:40:02 2008