PyCBA 0.5.1__tar.gz → 0.5.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyCBA
3
- Version: 0.5.1
3
+ Version: 0.5.2
4
4
  Summary: Python Continuous Beam Analysis
5
5
  Author-email: Colin Caprani <colin.caprani@monash.edu>
6
6
  License: Apache 2.0
@@ -29,7 +29,7 @@ Description-Content-Type: text/markdown
29
29
  License-File: LICENSE
30
30
  Requires-Dist: matplotlib
31
31
  Requires-Dist: numpy
32
- Requires-Dist: scipy
32
+ Requires-Dist: scipy>=1.6.0
33
33
  Provides-Extra: test
34
34
  Requires-Dist: pytest>=6.2.2; extra == "test"
35
35
 
@@ -30,7 +30,7 @@ requires-python = ">=3.8"
30
30
  dependencies = [
31
31
  "matplotlib",
32
32
  "numpy",
33
- "scipy",
33
+ "scipy>=1.6.0",
34
34
  ]
35
35
 
36
36
  [project.readme]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyCBA
3
- Version: 0.5.1
3
+ Version: 0.5.2
4
4
  Summary: Python Continuous Beam Analysis
5
5
  Author-email: Colin Caprani <colin.caprani@monash.edu>
6
6
  License: Apache 2.0
@@ -29,7 +29,7 @@ Description-Content-Type: text/markdown
29
29
  License-File: LICENSE
30
30
  Requires-Dist: matplotlib
31
31
  Requires-Dist: numpy
32
- Requires-Dist: scipy
32
+ Requires-Dist: scipy>=1.6.0
33
33
  Provides-Extra: test
34
34
  Requires-Dist: pytest>=6.2.2; extra == "test"
35
35
 
@@ -1,6 +1,6 @@
1
1
  matplotlib
2
2
  numpy
3
- scipy
3
+ scipy>=1.6.0
4
4
 
5
5
  [test]
6
6
  pytest>=6.2.2
@@ -2,7 +2,7 @@
2
2
  PyCBA - Continuous Beam Analysis in Python
3
3
  """
4
4
 
5
- __version__ = "0.5.1"
5
+ __version__ = "0.5.2"
6
6
 
7
7
  from .analysis import *
8
8
  from .beam import *
@@ -494,8 +494,9 @@ class BridgeAnalysis:
494
494
 
495
495
  ax = axsLeft[0]
496
496
  ax.plot([0, L], [0, 0], "k", lw=2)
497
- ax.plot(x, -env.Mmax, "r")
498
- ax.plot(x, -env.Mmin, "b")
497
+ ax.plot(x, env.Mmax, "r")
498
+ ax.plot(x, env.Mmin, "b")
499
+ ax.invert_yaxis()
499
500
  ax.grid()
500
501
  ax.set_ylabel("Bending Moment (kNm)")
501
502
 
@@ -173,8 +173,8 @@ class BeamResults:
173
173
  # And superimpose end displacements using Moment-Area
174
174
  h = L / self.npts
175
175
 
176
- R = integrate.cumtrapz(res.M[1:-1], dx=h, initial=0) / EI + R0
177
- D = integrate.cumtrapz(R, dx=h, initial=0) + d[0]
176
+ R = integrate.cumulative_trapezoid(res.M[1:-1], dx=h, initial=0) / EI + R0
177
+ D = integrate.cumulative_trapezoid(R, dx=h, initial=0) + d[0]
178
178
 
179
179
  res.R[1:-1] = R
180
180
  res.D[1:-1] = D
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes