mailr3914 - /1.3/prompt/diffusion_tensor.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on November 25, 2007 - 16:59:
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)




Related Messages


Powered by MHonArc, Updated Sun Nov 25 17:20:16 2007