used xrange instead of tuple for order rules
This commit is contained in:
parent
568c7afb95
commit
030329a9e7
@ -162,10 +162,10 @@ def run_baker(X, R, S, order=2):
|
|||||||
if order == 1:
|
if order == 1:
|
||||||
answer['qlin'] = qlin
|
answer['qlin'] = qlin
|
||||||
return answer
|
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)
|
error_term, abc = get_error(phi, R, S, order)
|
||||||
else:
|
else:
|
||||||
raise Exception('unsupported order for baker method')
|
raise Exception('unsupported order "%d" for baker method' % order)
|
||||||
|
|
||||||
q_final = qlin + error_term
|
q_final = qlin + error_term
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user