From e231e095c30d2df7886899eb0ca7d4e795a9019d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ne=C4=8Dada?= Date: Wed, 7 Mar 2018 20:22:29 +0200 Subject: [PATCH] Tiny syntax fix in transcoeff_cruzan.py Former-commit-id: abae90fa70da869a8cb43336dc99eb31821b61a1 --- tests/transcoeff_cruzan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/transcoeff_cruzan.py b/tests/transcoeff_cruzan.py index 912c497..1f5dead 100644 --- a/tests/transcoeff_cruzan.py +++ b/tests/transcoeff_cruzan.py @@ -85,9 +85,9 @@ def trcoeff_ACX(m, n, mu, nu, besseltype, kd, th, fi, csphase=1): # [Xu](58) def trcoeff_BCX(m, n, mu, nu, besseltype, kd, th, fi, csphase=1): # [Xu](59) res = 0 - for q in range(Qmax(-m,n,mu,nu)+1): + for q in IntegerRange(1,Qmax(-m,n,mu,nu)+1): p = p_q(q,n,nu) - res += BCXcoeff(m,n,mu,nu,q) * sphericalBessels[besseltype](p+1) * gen_legendre_P(p+1, mu-m, cos(th)) * (-csphase)**(mu-m) + res += BCXcoeff(m,n,mu,nu,q) * sphericalBessels[besseltype](p+1,kd) * gen_legendre_P(p+1, mu-m, cos(th)) * (-csphase)**(mu-m) res *= exp(I*(mu-m)*fi) return res