Skip to content

Commit 72e2f06

Browse files
fix: weights for vector constraints is optional
1 parent 3d90210 commit 72e2f06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

LoopStructural/interpolators/_geological_interpolator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def set_gradient_constraints(self, points: np.ndarray):
125125
-------
126126
127127
"""
128-
if points.shape[1] < 7:
128+
if points.shape[1] < 6:
129129
raise ValueError("Gradient constraints must at least have X,Y,Z,gx,gy,gz")
130130
self.n_g = points.shape[0]
131131
self.data["gradient"] = points
@@ -144,7 +144,7 @@ def set_normal_constraints(self, points: np.ndarray):
144144
-------
145145
146146
"""
147-
if points.shape[1] < 7:
147+
if points.shape[1] < 6:
148148
raise ValueError("Nonrmal constraints must at least have X,Y,Z,nx,ny,nz")
149149
self.n_n = points.shape[0]
150150
self.data["normal"] = points
@@ -163,7 +163,7 @@ def set_tangent_constraints(self, points: np.ndarray):
163163
-------
164164
165165
"""
166-
if points.shape[1] < 7:
166+
if points.shape[1] < 6:
167167
raise ValueError("Tangent constraints must at least have X,Y,Z,tx,ty,tz")
168168
self.data["tangent"] = points
169169
self.up_to_date = False

0 commit comments

Comments
 (0)