Skip to content

Commit

Permalink
fix: indexing error
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlangrose committed Mar 25, 2024
1 parent c5ec096 commit b3f67cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LoopStructural/modelling/features/fault/_fault_segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def apply_to_vectors(self, vector: np.ndarray, scale_parameter: float = 1.0) ->

element_gradients = element_gradients.swapaxes(1, 2)
element_gradients = element_gradients @ I
v = np.sum(element_gradients * corners, axis=2)
v = np.sum(element_gradients * corners[:, None, :], axis=2)
return v

def add_abutting_fault(self, abutting_fault_feature, positive=None):
Expand Down

0 comments on commit b3f67cf

Please sign in to comment.