mailr21568 - /branches/relax_disp/specific_analyses/relax_disp/disp_data.py


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

Header


Content

Posted by edward on November 21, 2013 - 10:11:
Author: bugman
Date: Thu Nov 21 10:11:54 2013
New Revision: 21568

URL: http://svn.gna.org/viewcvs/relax?rev=21568&view=rev
Log:
Improvement for the file names in the relax_disp.plot_disp_curves user 
function.

The '_' character is now used between the experiment name and the rest of the 
file name.


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

Modified: branches/relax_disp/specific_analyses/relax_disp/disp_data.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/specific_analyses/relax_disp/disp_data.py?rev=21568&r1=21567&r2=21568&view=diff
==============================================================================
--- branches/relax_disp/specific_analyses/relax_disp/disp_data.py (original)
+++ branches/relax_disp/specific_analyses/relax_disp/disp_data.py Thu Nov 21 
10:11:54 2013
@@ -1073,7 +1073,7 @@
             # The unique file name.
             file_name = "disp%s.agr" % spin_id.replace('#', 
'_').replace(':', '_').replace('@', '_')
             if num_exp_types() > 1:
-                file_name = exp_type.replace(' ', '_') + file_name
+                file_name = "%s_%s" % (exp_type.replace(' ', '_'), file_name)
 
             # Open the file for writing.
             file_path = get_file_path(file_name, dir)




Related Messages


Powered by MHonArc, Updated Thu Nov 21 10:20:01 2013