@@ -22,7 +22,7 @@ def __init__(
22
22
23
23
Create a geological feature by projecting a vector onto a feature representing a plane
24
24
E.g. project a thickness vector onto an axial surface
25
-
25
+
26
26
Parameters
27
27
----------
28
28
name: feature name
@@ -42,7 +42,7 @@ def __init__(
42
42
super ().__init__ (name )
43
43
self .plane_feature = plane_feature
44
44
self .vector = vector
45
-
45
+
46
46
self .value_feature = None
47
47
48
48
def evaluate_gradient (self , locations : np .ndarray , ignore_regions = False ) -> np .ndarray :
@@ -60,10 +60,10 @@ def evaluate_gradient(self, locations: np.ndarray, ignore_regions=False) -> np.n
60
60
-------
61
61
62
62
"""
63
-
63
+
64
64
# project s0 onto axis plane B X A X B
65
65
plane_normal = self .plane_feature .evaluate_gradient (locations , ignore_regions )
66
- vector = np .tile (self .vector ,(locations .shape [0 ],1 ))
66
+ vector = np .tile (self .vector , (locations .shape [0 ], 1 ))
67
67
68
68
projected_vector = np .cross (
69
69
plane_normal , np .cross (vector , plane_normal , axisa = 1 , axisb = 1 ), axisa = 1 , axisb = 1
@@ -108,5 +108,5 @@ def copy(self, name: Optional[str] = None):
108
108
if name is None :
109
109
name = f'{ self .name } _copy'
110
110
return ProjectedVectorFeature (
111
- name = name , vector = self .vector , plane_feature = self .plane_feature
111
+ name = name , vector = self .vector , plane_feature = self .plane_feature
112
112
)
0 commit comments