Author: bugman Date: Sun Nov 25 16:59:06 2007 New Revision: 3914 URL: http://svn.gna.org/viewcvs/relax?rev=3914&view=rev Log: Bug fix for the diffusion_tensor.copy() user function.
The pipes can be None. Modified: 1.3/prompt/diffusion_tensor.py Modified: 1.3/prompt/diffusion_tensor.py URL: http://svn.gna.org/viewcvs/relax/1.3/prompt/diffusion_tensor.py?rev=3914&r1=3913&r2=3914&view=diff ============================================================================== --- 1.3/prompt/diffusion_tensor.py (original) +++ 1.3/prompt/diffusion_tensor.py Sun Nov 25 16:59:06 2007 @@ -87,12 +87,12 @@ print text # The pipe_from argument. - if type(pipe_from) != str: - raise RelaxStrError, ('pipe from', pipe_from) + if pipe_from != None and type(pipe_from) != str: + raise RelaxNoneStrError, ('pipe from', pipe_from) # The pipe_to argument. - if type(pipe_to) != str: - raise RelaxStrError, ('pipe to', pipe_to) + if pipe_to != None and type(pipe_to) != str: + raise RelaxNoneStrError, ('pipe to', pipe_to) # Execute the functional code. diffusion_tensor.copy(pipe_from=pipe_from, pipe_to=pipe_to) _______________________________________________ relax (http://nmr-relax.com) This is the relax-commits mailing list relax-commits@gna.org To unsubscribe from this list, get a password reminder, or change your subscription options, visit the list information page at https://mail.gna.org/listinfo/relax-commits