Skip to content

Commit 97ad46f

Browse files
mkofler96clemens-fricke
authored andcommitted
fixed query out of bounds error dim message
1 parent 18ab237 commit 97ad46f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

splinepy/helpme/check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def valid_queries(spline, queries):
3434
# Check minimum value
3535
min_query = _np.min(queries, axis=0)
3636
if _np.any(bounds[0, :] > min_query):
37-
error_dim = _np.where(bounds[1, :] > min_query)[0][0]
37+
error_dim = _np.where(bounds[0, :] > min_query)[0][0]
3838
error_query = _np.argmin(queries, axis=0)[error_dim]
3939
raise ValueError(
4040
f"Query request out of bounds in parametric dimension "

0 commit comments

Comments
 (0)