mailr5028 - /branches/N_state_model/prompt/n_state_model.py


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

Header


Content

Posted by edward on February 19, 2008 - 17:19:
Author: bugman
Date: Tue Feb 19 17:19:34 2008
New Revision: 5028

URL: http://svn.gna.org/viewcvs/relax?rev=5028&view=rev
Log:
Fix for the testing of the force arg of the n_state_model.cone_pdb() user 
function.

The arg should now be a bool.


Modified:
    branches/N_state_model/prompt/n_state_model.py

Modified: branches/N_state_model/prompt/n_state_model.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/N_state_model/prompt/n_state_model.py?rev=5028&r1=5027&r2=5028&view=diff
==============================================================================
--- branches/N_state_model/prompt/n_state_model.py (original)
+++ branches/N_state_model/prompt/n_state_model.py Tue Feb 19 17:19:34 2008
@@ -233,8 +233,8 @@
             raise RelaxNoneStrError, ('directory name', dir)
 
         # The force flag.
-        if type(force) != int or (force != 0 and force != 1):
-            raise RelaxBinError, ('force flag', force)
+        if type(force) != bool:
+            raise RelaxBoolError, ('force flag', force)
 
         # Execute the functional code.
         n_state_model.cone_pdb(scale=scale, file=file, dir=dir, force=force)




Related Messages


Powered by MHonArc, Updated Tue Feb 19 17:40:45 2008