From 8aaddc8c3dce0cf93c5654d70d4fa2bd5c281fbc Mon Sep 17 00:00:00 2001 From: David Date: Tue, 26 Nov 2024 13:11:33 +0100 Subject: [PATCH] Move cumulative sum into specific cases to fix problem with timelines with single reference state --- saenopy/solver.py | 1 + 1 file changed, 1 insertion(+) diff --git a/saenopy/solver.py b/saenopy/solver.py index 7a804f47..09d40ea8 100644 --- a/saenopy/solver.py +++ b/saenopy/solver.py @@ -1079,6 +1079,7 @@ def subtract_reference_state(mesh_piv, mode): U = [M.displacements_measured for M in mesh_piv] # correct for the different modes if len(U) > 2: + xpos2 = U if mode == "cumul.": xpos2 = np.cumsum(U, axis=0) elif mode == "median":