summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Mulansky <mario.mulansky@gmx.net>2015-01-28 16:54:27 +0100
committerMario Mulansky <mario.mulansky@gmx.net>2015-01-28 16:54:27 +0100
commit877480b65c94019d25e44cec0e67876b96b4f418 (patch)
tree8d2a02cf910b412fb253b2264f722867d2843bf4
parentdeb1fb51359085ff5d171e5ffa8cd4c142a4e174 (diff)
convert return to arrays
-rw-r--r--pyspike/cython_add.pyx4
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]))