mailr20761 - /branches/relax_disp/specific_analyses/relax_disp/cpmgfit.py


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

Header


Content

Posted by edward on September 03, 2013 - 08:38:
Author: bugman
Date: Tue Sep  3 08:38:55 2013
New Revision: 20761

URL: http://svn.gna.org/viewcvs/relax?rev=20761&view=rev
Log:
The CPMGFit input and output file names for relaxation dispersion are now MS 
Windows compatible.

This is needed to allow the files in the test suite to exist on Windows 
systems, as the '#:@'
symbols cause problems.  The same logic as used for the 
relax_disp.plot_disp_curves is used to
replace these characters with an underscore.


Modified:
    branches/relax_disp/specific_analyses/relax_disp/cpmgfit.py

Modified: branches/relax_disp/specific_analyses/relax_disp/cpmgfit.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/specific_analyses/relax_disp/cpmgfit.py?rev=20761&r1=20760&r2=20761&view=diff
==============================================================================
--- branches/relax_disp/specific_analyses/relax_disp/cpmgfit.py (original)
+++ branches/relax_disp/specific_analyses/relax_disp/cpmgfit.py Tue Sep  3 
08:38:55 2013
@@ -289,7 +289,7 @@
     """
 
     # Construct the name.
-    name = "spin_%s." % spin_id
+    name = "spin%s." % spin_id.replace('#', '_').replace(':', 
'_').replace('@', '_')
     if output:
         name += "out"
     else:




Related Messages


Powered by MHonArc, Updated Tue Sep 03 09:00:01 2013