From 4a44e6a21d7375df0fd58a58e86d494ae2ce5daa Mon Sep 17 00:00:00 2001 From: rockfool Date: Thu, 30 Jan 2020 17:32:10 -0500 Subject: [PATCH] minor fix --- openmc/polynomial.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openmc/polynomial.py b/openmc/polynomial.py index 79b914b25..b6acf5845 100644 --- a/openmc/polynomial.py +++ b/openmc/polynomial.py @@ -117,7 +117,7 @@ class Zernike(Polynomial): for m in range(-n,(n+1),2): j = int((n * (n + 2) + m) / 2) if m==0: - norm_vec[j] = n + 1.0 + norm_vec[j] = n + 1 else: norm_vec[j] = 2 * n + 2 norm_vec /= (np.pi * radius**2) @@ -140,4 +140,3 @@ class Zernike(Polynomial): for theta_i in theta] else: return np.sum(self._norm_coef * lib.calc_zn(self.order, r/self.radius, theta)) - \ No newline at end of file