mailr7619 - /1.3/prompt/palmer.py


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

Header


Content

Posted by edward on October 11, 2008 - 23:07:
Author: bugman
Date: Sat Oct 11 23:07:51 2008
New Revision: 7619

URL: http://svn.gna.org/viewcvs/relax?rev=7619&view=rev
Log:
Fix for the check of the constraints arg in palmer.create().


Modified:
    1.3/prompt/palmer.py

Modified: 1.3/prompt/palmer.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/prompt/palmer.py?rev=7619&r1=7618&r2=7619&view=diff
==============================================================================
--- 1.3/prompt/palmer.py (original)
+++ 1.3/prompt/palmer.py Sat Oct 11 23:07:51 2008
@@ -151,8 +151,8 @@
             raise RelaxIntError, ('steps', steps)
 
         # Constraint flag.
-        if type(constraints) != int or (constraints != 0 and constraints != 
1):
-            raise RelaxBinError, ('constraint flag', constraints)
+        if type(constraints) != bool:
+            raise RelaxBoolError, ('constraints flag', constraints)
 
         # The heteronucleus argument.
         if type(heteronuc_type) != str:




Related Messages


Powered by MHonArc, Updated Sat Oct 11 23:20:03 2008