Author: bugman Date: Mon Jul 2 21:42:29 2012 New Revision: 17141 URL: http://svn.gna.org/viewcvs/relax?rev=17141&view=rev Log: Fix for the model-free duplicate_data() method, again for the interatomic data design. Modified: branches/interatomic/specific_fns/model_free/main.py Modified: branches/interatomic/specific_fns/model_free/main.py URL: http://svn.gna.org/viewcvs/relax/branches/interatomic/specific_fns/model_free/main.py?rev=17141&r1=17140&r2=17141&view=diff ============================================================================== --- branches/interatomic/specific_fns/model_free/main.py (original) +++ branches/interatomic/specific_fns/model_free/main.py Mon Jul 2 21:42:29 2012 @@ -1502,7 +1502,14 @@ spin, spin_id = return_spin_from_index(model_info, pipe=pipe_from, return_spin_id=True) if model_type == 'mf' or (model_type == 'local_tm' and not global_stats): # Duplicate the spin specific data. - dp_to.mol[spin._mol_index].res[spin._res_index].spin[spin._spin_index] = deepcopy(spin) + for name in dir(spin): + # Skip special objects. + if search('^_', name): + continue + + # Duplicate the object. + new_obj = deepcopy(getattr(spin, name)) + setattr(dp_to.mol[spin._mol_index].res[spin._res_index].spin[spin._spin_index], name, new_obj) # Duplicate the relaxation active spins which have not been copied yet. interatoms = interatomic.return_interatom_list(spin_id)