From a22732c612896ecb772292b4b7f1f0a48595d385 Mon Sep 17 00:00:00 2001 From: jochenstahn Date: Tue, 16 Sep 2025 11:08:52 +0200 Subject: [PATCH] fixed the wrong proton-current matching --- libeos/file_reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libeos/file_reader.py b/libeos/file_reader.py index 7b0c55f..e96349f 100644 --- a/libeos/file_reader.py +++ b/libeos/file_reader.py @@ -263,7 +263,7 @@ class AmorData: pulseCurrentS = np.zeros(pulseTimeS.shape[0], dtype=float) j = 0 for i, ti in enumerate(pulseTimeS): - if ti >= currentTimeS[j+1]: + while ti >= currentTimeS[j+1]: j += 1 pulseCurrentS[i] = currents[j] #print(f' {i} {pulseTimeS[i]} {pulseCurrentS[i]}')