Author: bugman Date: Tue Nov 20 16:13:31 2007 New Revision: 3684 URL: http://svn.gna.org/viewcvs/relax?rev=3684&view=rev Log: Bug fix for the residue.copy() user function. The res_to argument can be None. Modified: 1.3/prompt/residue.py Modified: 1.3/prompt/residue.py URL: http://svn.gna.org/viewcvs/relax/1.3/prompt/residue.py?rev=3684&r1=3683&r2=3684&view=diff ============================================================================== --- 1.3/prompt/residue.py (original) +++ 1.3/prompt/residue.py Tue Nov 20 16:13:31 2007 @@ -108,8 +108,8 @@ raise RelaxNoneStrError, ('data pipe to', pipe_to) # The residue to argument. - if type(res_to) != str: - raise RelaxStrError, ('residue to', res_to) + if res_to != None and type(res_to) != str: + raise RelaxNoneStrError, ('residue to', res_to) # Execute the functional code. residue.copy(pipe_from=pipe_from, res_from=res_from, pipe_to=pipe_to, res_to=res_to)