diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-12-08 14:51:03 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-12-08 14:51:03 +0100 |
commit | 48147865517bcca444f0fa432361cacc24c9198a (patch) | |
tree | 7150bd35f54e733fb81895c227e9edc9245902cf /brill_data.py | |
parent | ae210faae56af10e5897fa413e731921d718b8c7 (diff) |
python wrapper: fix array order
Diffstat (limited to 'brill_data.py')
-rw-r--r-- | brill_data.py | 6 |
1 files 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) |