We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fefaf0 commit c104468Copy full SHA for c104468
saenopy/solver.py
@@ -1077,14 +1077,15 @@ def load_results(filename: str) -> List[Result]:
1077
1078
def subtract_reference_state(mesh_piv, mode):
1079
U = [M.displacements_measured for M in mesh_piv]
1080
- # correct for the median position
1081
- if len(U) > 2:
1082
- xpos2 = np.cumsum(U, axis=0)
+ # correct for the different modes
+ if len(U) > 2:
1083
if mode == "cumul.":
1084
- xpos2 = xpos2
+ xpos2 = np.cumsum(U, axis=0)
1085
elif mode == "median":
1086
xpos2 -= np.nanmedian(xpos2, axis=0)
1087
elif mode == "last":
1088
1089
xpos2 -= xpos2[-1]
1090
elif mode == "next":
1091
xpos2 = U
0 commit comments