Skip to content

Commit

Permalink
Fix access of series to fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
maierbn committed Jan 26, 2024
1 parent 779dfb0 commit 36489b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pylife/materiallaws/notch_approximation_law.py
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ def _stress_secondary_branch_multiple_assessment_points_single_lut(self, delta_l
delta_load = delta_load.fillna(0)
sign = sign.fillna(0)

index = self._find_lut_secondary_branch_index_or_raise(delta_load)
index = self._find_lut_secondary_branch_index_or_raise(delta_load.values)

return sign.values.flatten() * self._lut_secondary_branch.iloc[(index+1).flatten()].delta_stress.reset_index(drop=True) # "+1", because the next higher class is used

Expand Down

0 comments on commit 36489b8

Please sign in to comment.