Author: bugman Date: Sun Nov 11 13:38:43 2007 New Revision: 3488 URL: http://svn.gna.org/viewcvs/relax?rev=3488&view=rev Log: Fixed the last of the bugs in the generic_fns.spin.copy() function. Modified: 1.3/generic_fns/spin.py Modified: 1.3/generic_fns/spin.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/spin.py?rev=3488&r1=3487&r2=3488&view=diff ============================================================================== --- 1.3/generic_fns/spin.py (original) +++ 1.3/generic_fns/spin.py Sun Nov 11 13:38:43 2007 @@ -73,17 +73,18 @@ if spin_to_cont: raise RelaxError, "The spin " + `spin_to` + " already exists in the " + `pipe_from` + " data pipe." - # Get the single residue data container. + # No residue to copy data from. res_from_cont = return_residue(spin_from, pipe_from) - - # No residue to copy data from. if res_from_cont == None: raise RelaxError, "The residue in " + `spin_from` + " does not exist in the " + `pipe_from` + " data pipe." - # Get the single spin data container. + # No residue to copy data to. + res_to_cont = return_residue(spin_to, pipe_from) + if res_to_cont == None and spin_to: + raise RelaxError, "The residue in " + `spin_to` + " does not exist in the " + `pipe_from` + " data pipe." + + # No spin to copy data from. spin_from_cont = return_spin(spin_from, pipe_from) - - # No spin to copy data from. if spin_from_cont == None: raise RelaxError, "The spin " + `spin_from` + " does not exist in the " + `pipe_from` + " data pipe."