Skip to content

Commit 470cdec

Browse files
Bump version
1 parent a9b2391 commit 470cdec

File tree

6 files changed

+7
-8
lines changed

6 files changed

+7
-8
lines changed

concreteproperties/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
A python package to calculate the section properties of arbitrary reinforced concrete
33
sections.
44
"""
5-
__version__ = "0.2.0"
5+
__version__ = "0.2.1"

concreteproperties/concrete_section.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,7 +1408,7 @@ def calculate_cracked_stress(
14081408

14091409
# handle cardinal points (avoid divide by zeros)
14101410
tan_theta = np.tan(theta)
1411-
with np.errstate(divide='ignore'):
1411+
with np.errstate(divide="ignore"):
14121412
c = (e_ixx - e_ixy * tan_theta) / (e_ixy - e_iyy * tan_theta)
14131413

14141414
# calculate bending moment about each axis (figure out signs)
@@ -1418,7 +1418,7 @@ def calculate_cracked_stress(
14181418
elif c > 0:
14191419
sign = 1
14201420
else:
1421-
if c < 0 :
1421+
if c < 0:
14221422
sign = 1
14231423
else:
14241424
sign = -1

concreteproperties/results.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,6 @@ def calculate_transformed_properties(
320320
self.i11_cr = self.e_i11_cr / elastic_modulus
321321
self.i22_cr = self.e_i22_cr / elastic_modulus
322322

323-
324323
def plot_cracked_geometries(
325324
self,
326325
title: Optional[str] = "Cracked Geometries",

concreteproperties/tests/test_rotation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def test_rotated_uncracked_stress(theta):
149149

150150
# fix top and bottom geometries
151151
for idx, cf in enumerate(new_uncr_stress.concrete_forces):
152-
if theta < -np.pi / 2 or theta > np.pi /2:
152+
if theta < -np.pi / 2 or theta > np.pi / 2:
153153
i = len(new_uncr_stress.concrete_forces) - idx - 1
154154
else:
155155
i = idx

docs/source/_static/switcher.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"url": "https://robbievanleeuwen.github.io/concrete-properties/"
55
},
66
{
7-
"version": "0.2.0",
8-
"url": "https://robbievanleeuwen.github.io/concrete-properties/0.2.0"
7+
"version": "0.2.1",
8+
"url": "https://robbievanleeuwen.github.io/concrete-properties/0.2.1"
99
},
1010
{
1111
"version": "0.1.0",

todo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
- [x] Is there a way to generate output within a docstring??
1515
- [x] gif of progressive service stress plot?
1616
- [x] Fix mv!!!
17-
- [ ] CRACKED STRESS - resolve moments!
17+
- [x] CRACKED STRESS - resolve moments!
1818

1919
# POST-RELEASE ITEMS
2020
- [ ] Speed up

0 commit comments

Comments
 (0)