mailr19846 - /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 June 03, 2013 - 11:10:
Author: bugman
Date: Mon Jun  3 11:10:16 2013
New Revision: 19846

URL: http://svn.gna.org/viewcvs/relax?rev=19846&view=rev
Log:
Fix for the CPMGFit batch file creation.

The command line options are now correct and output is redirected to output 
files.


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=19846&r1=19845&r2=19846&view=diff
==============================================================================
--- branches/relax_disp/specific_analyses/relax_disp/cpmgfit.py (original)
+++ branches/relax_disp/specific_analyses/relax_disp/cpmgfit.py Mon Jun  3 
11:10:16 2013
@@ -161,10 +161,14 @@
 
     # Generate the input files for each spin.
     for spin, spin_id in spin_loop(return_id=True, skip_desel=True):
-        file_name = create_spin_input(function=function, spin=spin, 
spin_id=spin_id, dir=dir)
+        # Create the input file.
+        file_in = create_spin_input(function=function, spin=spin, 
spin_id=spin_id, dir=dir)
+
+        # The output file name.
+        file_out = spin_file_name(spin_id=spin_id, output=True)
 
         # Add the file to the batch script.
-        batch.write("%s -xmgr -f %s\n" % (binary, file_name))
+        batch.write("%s -grid -xmgr -f %s | tee %s\n" % (binary, file_in, 
file_out))
 
     # Close the batch script, then make it executable.
     batch.close()




Related Messages


Powered by MHonArc, Updated Mon Jun 03 11:20:01 2013