From fc29e2ab07351be9a809f1cebf73fec2904c17a6 Mon Sep 17 00:00:00 2001
From: Pascal <engelerp@phys.ethz.ch>
Date: Mon, 2 Sep 2024 10:38:50 +0200
Subject: [PATCH] changed return

---
 stitch_project/api/Stitch/Stitchtility.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stitch_project/api/Stitch/Stitchtility.py b/stitch_project/api/Stitch/Stitchtility.py
index 501c330..94cc0dd 100644
--- a/stitch_project/api/Stitch/Stitchtility.py
+++ b/stitch_project/api/Stitch/Stitchtility.py
@@ -47,4 +47,4 @@ def dataToAmpsPhase(data):
     angles_unwr = np.unwrap(angles)
     cosportion = [2**-15*np.abs(np.sqrt(2)*cosdata[i])/numdata[i] for i in range(len(amps))]
     sinportion = [2**-15*np.abs(np.sqrt(2)*sindata[i])/numdata[i] for i in range(len(amps))]
-    return [amps,cosportion,sinportion], angles_unwr
\ No newline at end of file
+    return np.array(amps), [np.array(angles), np.array(angles_unwr)], np.array(cosportion), np.array(sinportion), np.array(numdata)
\ No newline at end of file
-- 
GitLab