mailr14333 - /1.3/prompt/molmol.py


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

Header


Content

Posted by edward on August 11, 2011 - 10:08:
Author: bugman
Date: Thu Aug 11 10:08:26 2011
New Revision: 14333

URL: http://svn.gna.org/viewcvs/relax?rev=14333&view=rev
Log:
Fix for the molmol.write macro creation user function - the file arg can be 
None!


Modified:
    1.3/prompt/molmol.py

Modified: 1.3/prompt/molmol.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/prompt/molmol.py?rev=14333&r1=14332&r2=14333&view=diff
==============================================================================
--- 1.3/prompt/molmol.py (original)
+++ 1.3/prompt/molmol.py Thu Aug 11 10:08:26 2011
@@ -357,7 +357,7 @@
         arg_check.is_str_or_num_list(colour_start, 'starting colour of the 
linear gradient', size=3, can_be_none=True)
         arg_check.is_str_or_num_list(colour_end, 'ending colour of the 
linear gradient', size=3, can_be_none=True)
         arg_check.is_str(colour_list, 'colour list', can_be_none=True)
-        arg_check.is_str_or_inst(file, 'file name')
+        arg_check.is_str_or_inst(file, 'file name', can_be_none=True)
         arg_check.is_str(dir, 'directory name', can_be_none=True)
         arg_check.is_bool(force, 'force flag')
 




Related Messages


Powered by MHonArc, Updated Thu Aug 11 10:20:02 2011