used xrange instead of tuple for order rules

This commit is contained in:
Stephen McQuay 2011-02-20 21:35:27 -07:00
parent 568c7afb95
commit 030329a9e7
1 changed files with 2 additions and 2 deletions

View File

@ -162,10 +162,10 @@ def run_baker(X, R, S, order=2):
if order == 1:
answer['qlin'] = qlin
return answer
elif order in (2,3,4,5,6):
elif order in xrange(2,11):
error_term, abc = get_error(phi, R, S, order)
else:
raise Exception('unsupported order for baker method')
raise Exception('unsupported order "%d" for baker method' % order)
q_final = qlin + error_term