From c5b17bb3f8bad305a7e219acbda5ed763cd279acd5034c573924d9435efaa6d3 Mon Sep 17 00:00:00 2001 From: PioApocalypse Date: Sat, 9 May 2026 00:15:52 +0200 Subject: [PATCH] minimal modifications --- src/APIHandler.py | 2 +- src/main.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/APIHandler.py b/src/APIHandler.py index 65c67c3..14d4d08 100644 --- a/src/APIHandler.py +++ b/src/APIHandler.py @@ -123,7 +123,7 @@ class APIHandler: elabid, entryType="experiments", dump_dir="output/attachments", - persistent=True, + # persistent=True, ): """ Downloads attachments of a certain eLabFTW experiment (default) or item. diff --git a/src/main.py b/src/main.py index 769f615..b227621 100755 --- a/src/main.py +++ b/src/main.py @@ -214,10 +214,10 @@ def analyse_rheed_data(data): ----- Distinct ValueErrors are raised if: - - The array is not 2-dimensional; - - The total number of columns does not equate exactly 1+3 (= 4). + * The array is not 2-dimensional; + * The total number of columns does not equate exactly 1+3 (= 4). - Time is expressed in seconds, intensities are normalized (adimensional). + Time is expressed in seconds, intensities are adimensional on 8 bits (min. 0, max. 255). # TO-DO: complete this description... Written with help from DeepSeek. @@ -717,6 +717,7 @@ if __name__ == "__main__": # (IF PRESENT ←→ also handle missing file error) # and merge all data in a single file to analyse it # WARNING: fails if file is missing + with open("tests/Realtime_Window_Analysis.txt", "r") as o: osc = np.loadtxt(o, delimiter="\t") try: