minimal modifications

This commit is contained in:
2026-05-09 00:15:52 +02:00
parent 865f5cab6b
commit c5b17bb3f8
2 changed files with 5 additions and 4 deletions

View File

@@ -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.

View File

@@ -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: