Skip to content

Commit

Permalink
Move cumulative sum into specific cases to fix problem with timelines…
Browse files Browse the repository at this point in the history
… with single reference state
  • Loading branch information
davidbhr committed Nov 26, 2024
1 parent 1a1129c commit 8aaddc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions saenopy/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 8aaddc8

Please sign in to comment.