Skip to content

Commit

Permalink
Upgrade scipy to cumulative_trapezoidal
Browse files Browse the repository at this point in the history
  • Loading branch information
ccaprani committed Aug 24, 2024
1 parent f109c7e commit ffea366
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ requires-python = ">=3.8"
dependencies = [
"matplotlib",
"numpy",
"scipy",
"scipy>=1.6.0",
]

[project.readme]
Expand Down
2 changes: 1 addition & 1 deletion src/pycba/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
PyCBA - Continuous Beam Analysis in Python
"""

__version__ = "0.5.1"
__version__ = "0.5.2"

from .analysis import *
from .beam import *
Expand Down
4 changes: 2 additions & 2 deletions src/pycba/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ def _member_values(
# And superimpose end displacements using Moment-Area
h = L / self.npts

R = integrate.cumtrapz(res.M[1:-1], dx=h, initial=0) / EI + R0
D = integrate.cumtrapz(R, dx=h, initial=0) + d[0]
R = integrate.cumulative_trapezoid(res.M[1:-1], dx=h, initial=0) / EI + R0
D = integrate.cumulative_trapezoid(R, dx=h, initial=0) + d[0]

res.R[1:-1] = R
res.D[1:-1] = D
Expand Down

0 comments on commit ffea366

Please sign in to comment.