Skip to content

Commit 1aa34c6

Browse files
Merge pull request #10 from StructuralPython/releases/v0.4.1
fix: add check and adjustment for spread_width > wall_length
2 parents 3884d62 + dc035d4 commit 1aa34c6

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/loadbearing_wall/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
The wall model is parameterizable and can represent any material
66
"""
77

8-
__version__ = "0.4.0"
8+
__version__ = "0.4.1"
99

1010
from loadbearing_wall.wall_model import LinearWallModel
1111
from loadbearing_wall import *

src/loadbearing_wall/geom_ops.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ def apply_minimum_width(
7373
Load locations between zero/wall_length and half of the
7474
spread_width will be linearly interpolated.
7575
"""
76-
assert spread_width <= wall_length
76+
if spread_width > wall_length:
77+
spread_width = wall_length
7778
if location <= spread_width / 2:
7879
projected_x0 = 0
7980
projected_x1 = location + spread_width / 2

0 commit comments

Comments
 (0)