From 48147865517bcca444f0fa432361cacc24c9198a Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 8 Dec 2014 14:51:03 +0100 Subject: python wrapper: fix array order --- brill_data.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/brill_data.py b/brill_data.py index 192f0aa..26c8efb 100644 --- a/brill_data.py +++ b/brill_data.py @@ -73,7 +73,7 @@ class BrillData(object): c_diff_order[0] = diff_order[0] c_diff_order[1] = diff_order[1] - psi = np.empty((rho.shape[0], z.shape[0])) + psi = np.empty((z.shape[0], rho.shape[0])) c_psi = np.ctypeslib.as_ctypes(psi) c_rho = np.ctypeslib.as_ctypes(rho) @@ -101,7 +101,7 @@ class BrillData(object): c_component[0] = component[0] c_component[1] = component[1] - metric = np.empty((rho.shape[0], z.shape[0])) + metric = np.empty((z.shape[0], rho.shape[0])) c_metric = np.ctypeslib.as_ctypes(metric) c_rho = np.ctypeslib.as_ctypes(rho) @@ -125,7 +125,7 @@ class BrillData(object): c_diff_order[0] = diff_order[0] c_diff_order[1] = diff_order[1] - q = np.empty((rho.shape[0], z.shape[0])) + q = np.empty((z.shape[0], rho.shape[0])) c_q = np.ctypeslib.as_ctypes(q) c_rho = np.ctypeslib.as_ctypes(rho) -- cgit v1.2.3