Author: bugman Date: Wed Nov 28 10:47:17 2007 New Revision: 4099 URL: http://svn.gna.org/viewcvs/relax?rev=4099&view=rev Log: Bug fix for the generic_fns.spin.create() 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=4099&r1=4098&r2=4099&view=diff ============================================================================== --- 1.3/generic_fns/spin.py (original) +++ 1.3/generic_fns/spin.py Wed Nov 28 10:47:17 2007 @@ -124,10 +124,11 @@ raise RelaxNoPipeError # Get the residue container to add the spin to. - res_to_cont = return_residue(res_id) - if res_to_cont == None and res_id: - raise RelaxError, "The residue in " + `res_id` + " does not exist in the current data pipe." - elif res_to_cont == None: + if res_id: + res_to_cont = return_residue(res_id) + if res_to_cont == None: + raise RelaxError, "The residue in " + `res_id` + " does not exist in the current data pipe." + else: res_to_cont = relax_data_store[relax_data_store.current_pipe].mol[0].res[0] # Test if the spin number already exists.