mailr7332 - /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 - 12:25:
Author: bugman
Date: Fri Sep 26 12:25:25 2008
New Revision: 7332

URL: http://svn.gna.org/viewcvs/relax?rev=7332&view=rev
Log:
Fix for the structure duplication 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=7332&r1=7331&r2=7332&view=diff
==============================================================================
--- 1.3/specific_fns/model_free/main.py (original)
+++ 1.3/specific_fns/model_free/main.py Fri Sep 26 12:25:25 2008
@@ -1042,7 +1042,11 @@
             # Otherwise compare the objects inside the container.
             else:
                 # Loop over the modifiable objects.
-                for data_name in ds[pipe_from].structure.__mod_attr__:
+                for data_name in dir(ds[pipe_from].structure):
+                    # Skip special objects.
+                    if search('^_', data_name) or data_name in 
ds[pipe_from].__class__.__dict__.keys():
+                        continue
+
                     # Get the original object.
                     data_from = None
                     if hasattr(ds[pipe_from].structure, data_name):




Related Messages


Powered by MHonArc, Updated Fri Sep 26 14:20:05 2008