diff options
author | Mario Mulansky <mario.mulansky@gmx.net> | 2015-01-28 16:54:27 +0100 |
---|---|---|
committer | Mario Mulansky <mario.mulansky@gmx.net> | 2015-01-28 16:54:27 +0100 |
commit | 877480b65c94019d25e44cec0e67876b96b4f418 (patch) | |
tree | 8d2a02cf910b412fb253b2264f722867d2843bf4 | |
parent | deb1fb51359085ff5d171e5ffa8cd4c142a4e174 (diff) |
convert return to arrays
-rw-r--r-- | pyspike/cython_add.pyx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pyspike/cython_add.pyx b/pyspike/cython_add.pyx index 817799e..ac64005 100644 --- a/pyspike/cython_add.pyx +++ b/pyspike/cython_add.pyx @@ -230,4 +230,6 @@ def add_discrete_function_cython(double[:] x1, double[:] y1, double[:] mp1, # the last value is again the end of the interval # only use the data that was actually filled - return x_new[:index+1], y_new[:index+1], mp_new[:index+1] + return (np.array(x_new[:index+1]), + np.array(y_new[:index+1]), + np.array(mp_new[:index+1])) |