mailr22814 - /trunk/sample_scripts/relax_disp/cpmg_analysis.py


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

Header


Content

Posted by edward on April 22, 2014 - 17:34:
Author: bugman
Date: Tue Apr 22 17:34:47 2014
New Revision: 22814

URL: http://svn.gna.org/viewcvs/relax?rev=22814&view=rev
Log:
Fix for the cpmg_analysis.py relaxation dispersion sample script.

This was reported as sr #3142 (http://gna.org/support/?3142).

The problem was that one of the paths was in the Linux/Unix format and hence 
if the path is not
changed by the user, then the script will not work for them if they are using 
MS Windows or Mac OS
X.


Modified:
    trunk/sample_scripts/relax_disp/cpmg_analysis.py

Modified: trunk/sample_scripts/relax_disp/cpmg_analysis.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/sample_scripts/relax_disp/cpmg_analysis.py?rev=22814&r1=22813&r2=22814&view=diff
==============================================================================
--- trunk/sample_scripts/relax_disp/cpmg_analysis.py    (original)
+++ trunk/sample_scripts/relax_disp/cpmg_analysis.py    Tue Apr 22 17:34:47 
2014
@@ -1,6 +1,6 @@
 
###############################################################################
 #                                                                            
 #
-# Copyright (C) 2013 Edward d'Auvergne                                       
 #
+# Copyright (C) 2013-2014 Edward d'Auvergne                                  
 #
 #                                                                            
 #
 # This file is part of the program relax (http://www.nmr-relax.com).         
 #
 #                                                                            
 #
@@ -23,7 +23,7 @@
 
 
 # Python module imports.
-from os import sep
+from os import pardir, sep
 
 # relax module imports.
 from auto_analyses.relax_disp import Relax_disp
@@ -65,7 +65,7 @@
 #######################
 
 # The path to the data files.
-DATA_PATH = '../../test_suite/shared_data/dispersion/Hansen'
+DATA_PATH = 
pardir+sep+pardir+sep+'test_suite'+sep+'shared_data'+sep+'dispersion'+sep+'Hansen'
 
 # Create the data pipe.
 pipe_name = 'base pipe'




Related Messages


Powered by MHonArc, Updated Tue Apr 22 18:00:02 2014