mailr20018 - /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 10, 2013 - 19:36:
Author: bugman
Date: Mon Jun 10 19:36:38 2013
New Revision: 20018

URL: http://svn.gna.org/viewcvs/relax?rev=20018&view=rev
Log:
Fix for the relax_disp.cpmgfit_input user function for when no directory is 
given.

This was causing tracebacks.


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=20018&r1=20017&r2=20018&view=diff
==============================================================================
--- branches/relax_disp/specific_analyses/relax_disp/cpmgfit.py (original)
+++ branches/relax_disp/specific_analyses/relax_disp/cpmgfit.py Mon Jun 10 
19:36:38 2013
@@ -169,7 +169,10 @@
 
     # Close the batch script, then make it executable.
     batch.close()
-    chmod(dir + sep + 'batch_run.sh', S_IRWXU|S_IRGRP|S_IROTH)
+    if dir:
+        chmod(dir + sep + 'batch_run.sh', S_IRWXU|S_IRGRP|S_IROTH)
+    else:
+        chmod('batch_run.sh', S_IRWXU|S_IRGRP|S_IROTH)
 
 
 def create_spin_input(function=None, spin=None, spin_id=None, dir=None):




Related Messages


Powered by MHonArc, Updated Mon Jun 10 19:40:02 2013