From 4ba56c7838bf2bc41198f811dbc57b1eed54d0db Mon Sep 17 00:00:00 2001 From: Lachlan Grose Date: Thu, 5 Sep 2024 13:30:54 +1000 Subject: [PATCH] fix: faulted feature gradient was incorrect --- LoopStructural/modelling/features/_geological_feature.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LoopStructural/modelling/features/_geological_feature.py b/LoopStructural/modelling/features/_geological_feature.py index a96179e1..a26f9e3a 100644 --- a/LoopStructural/modelling/features/_geological_feature.py +++ b/LoopStructural/modelling/features/_geological_feature.py @@ -200,7 +200,7 @@ def evaluate_gradient( values = self.interpolator.evaluate_value(tetrahedron_faulted.reshape(-1, 3)).reshape( (-1, 4) ) - v[mask, :] = gradient_from_tetrahedron(tetrahedron_faulted[mask, :, :], values[mask]) + v[mask, :] = gradient_from_tetrahedron(tetrahedron[mask, :, :], values[mask]) return v pos = self._apply_faults(pos)