From a391a79a54b8661e690a1d74a88d6599a8ff3f53 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 11 Jul 2017 20:37:56 +0800 Subject: astro/ps2d.py: Fix a bug/typo Signed-off-by: Aaron LI --- astro/ps2d.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'astro') diff --git a/astro/ps2d.py b/astro/ps2d.py index b6b5cc8..e110776 100755 --- a/astro/ps2d.py +++ b/astro/ps2d.py @@ -132,7 +132,7 @@ class PS2D: ic_x = (np.abs(k_x) < eps).nonzero()[0][0] ic_z = (np.abs(k_z) < eps).nonzero()[0][0] p_x = np.arange(nx) - ic_x - p_z = np.abs(np.arange(ny) - ic_z) + p_z = np.abs(np.arange(nz) - ic_z) mx, my = np.meshgrid(p_x, p_x) rho, phi = self.cart2pol(mx, my) rho = np.around(rho).astype(np.int) -- cgit v1.2.2