diff --git a/src/loadbearing_wall/geom_ops.py b/src/loadbearing_wall/geom_ops.py index 7308228..f80a980 100644 --- a/src/loadbearing_wall/geom_ops.py +++ b/src/loadbearing_wall/geom_ops.py @@ -11,7 +11,7 @@ def apply_spread_angle( w1: Optional[float] = None, x1: Optional[float] = None, p: Optional[float] = None, - x: Optional[float] = None + x: Optional[float] = None, ) -> tuple[float, float, float, float]: """ Returns a dictionary representing the load described by @@ -64,16 +64,16 @@ def apply_minimum_width( """ Returns a dictionary representing a distributed load representing the point load converted to a distributed - load over the 'spread_width' in such a way that the + load over the 'spread_width' in such a way that the point load will be distributed an equal amount over half of the spread_width on each side of point load. If the point load location is 0 or wall_length, then the point load will be a distributed load over half of the spread_width (since there is not room for the - other half). + other half). - Load locations between zero/wall_length and half of the + Load locations between zero/wall_length and half of the spread_width will be linearly interpolated. """ assert spread_width <= wall_length diff --git a/src/loadbearing_wall/linear_reactions.py b/src/loadbearing_wall/linear_reactions.py index 528404a..7dadd67 100644 --- a/src/loadbearing_wall/linear_reactions.py +++ b/src/loadbearing_wall/linear_reactions.py @@ -95,9 +95,7 @@ def from_projected_loads( ) return cls(linear_reaction_components, w0, w1, x0, x1) - def extract_reaction_string( - self, xa: float, xb: float, case: str, dir: str - ): + def extract_reaction_string(self, xa: float, xb: float, case: str, dir: str): """ Returns a LinearReactionString representing the linear reactions that exist between 'xa' and 'xb' extracted from self. diff --git a/src/loadbearing_wall/wall_model.py b/src/loadbearing_wall/wall_model.py index baa2597..c46ce0a 100644 --- a/src/loadbearing_wall/wall_model.py +++ b/src/loadbearing_wall/wall_model.py @@ -20,10 +20,10 @@ class LinearWallModel(BaseModel): out_of_plane_dir: str = "y" apply_spread_angle_gravity: bool = True apply_spread_angle_inplane: bool = True - magnitude_point_key: str = 'p' + magnitude_point_key: str = "p" magnitude_start_key: str = "w0" magnitude_end_key: str = "w1" - location_point_key: str = 'x' + location_point_key: str = "x" location_start_key: str = "x0" location_end_key: str = "x1" reverse_reaction_force_direction: bool = True @@ -229,7 +229,7 @@ def spread_loads(self) -> None: point_load[p], point_load[x], self.minimum_point_spread, - self.length + self.length, ) proj[load_dir][load_case].append( {