mailr3046 - /branches/error_import/test_suite/unit_tests/data/test_diff_tensor.py


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

Header


Content

Posted by edward on February 27, 2007 - 06:20:
Author: bugman
Date: Tue Feb 27 06:19:45 2007
New Revision: 3046

URL: http://svn.gna.org/viewcvs/relax?rev=3046&view=rev
Log:
Bug fix:

Modified the relax base directory path setting in the diffusion tensor data 
structure unit test
module so that the join() function would not throw an error if the path was 
not long enough.


Modified:
    branches/error_import/test_suite/unit_tests/data/test_diff_tensor.py

Modified: branches/error_import/test_suite/unit_tests/data/test_diff_tensor.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/error_import/test_suite/unit_tests/data/test_diff_tensor.py?rev=3046&r1=3045&r2=3046&view=diff
==============================================================================
--- branches/error_import/test_suite/unit_tests/data/test_diff_tensor.py 
(original)
+++ branches/error_import/test_suite/unit_tests/data/test_diff_tensor.py Tue 
Feb 27 06:19:45 2007
@@ -31,8 +31,9 @@
 
 # Modify the system path so that the relax modules can be imported (for 
stand alone execution).
 path_comps = split(path[0], sep)
-relax_path = sep + join(*path_comps[0:-3])
-path.append(relax_path)
+if len(path_comps) > 3:
+    relax_path = sep + join(*path_comps[0:-3])
+    path.append(relax_path)
 
 from data.diff_tensor import DiffTensorElement, DiffTensorSimList
 




Related Messages


Powered by MHonArc, Updated Tue Feb 27 07:00:07 2007