Skip to content

Commit

Permalink
fix: flake8 error
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlangrose committed Jan 8, 2024
1 parent a7c30f0 commit 9c1b4d1
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions LoopStructural/modelling/features/builders/_fault_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ def create_data_from_geometry(
)
if fault_center is not None:
if minor_axis is not None:
fault_edges[0, :] = fault_center[:3] + normal_vector * minor_axis
fault_edges[1, :] = fault_center[:3] - normal_vector * minor_axis
fault_edges[0, :] = fault_center[:3] + fault_normal_vector * minor_axis
fault_edges[1, :] = fault_center[:3] - fault_normal_vector * minor_axis
self.update_geometry(fault_edges)

# choose whether to add points -1,1 to constrain fault frame or a scaled
Expand Down Expand Up @@ -367,8 +367,12 @@ def create_data_from_geometry(
]
strike_vector /= major_axis
if intermediate_axis is not None:
fault_depth[0, :] = fault_center[:3] + slip_vector * intermediate_axis
fault_depth[1, :] = fault_center[:3] - slip_vector * intermediate_axis
fault_depth[0, :] = (
fault_center[:3] + fault_slip_vector * intermediate_axis
)
fault_depth[1, :] = (
fault_center[:3] - fault_slip_vector * intermediate_axis
)
fault_frame_data.loc[
len(fault_frame_data),
["X", "Y", "Z", "feature_name", "val", "coord", "w"],
Expand All @@ -384,7 +388,7 @@ def create_data_from_geometry(

self.update_geometry(fault_depth)
# TODO need to add data here
slip_vector /= intermediate_axis
fault_slip_vector /= intermediate_axis
fault_frame_data.loc[
len(fault_frame_data),
[
Expand All @@ -404,9 +408,9 @@ def create_data_from_geometry(
fault_center[1],
fault_center[2],
self.name,
slip_vector[0],
slip_vector[1],
slip_vector[2],
fault_slip_vector[0],
fault_slip_vector[1],
fault_slip_vector[2],
0,
1,
w,
Expand Down

0 comments on commit 9c1b4d1

Please sign in to comment.