Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 10, 2023
1 parent 7eeedd5 commit 1ceae3a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions splinepy/helpme/check.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import numpy as np


def valid_queries(spline, queries):
"""Check queries
Check if queries are valid for a specific spline, so not to exceed
Check if queries are valid for a specific spline, so not to exceed
parametric bounds for requests
Parameters
Expand All @@ -12,7 +13,7 @@ def valid_queries(spline, queries):
spline that sets the bounds
queries : np.array
Requested queries
Returns
-------
valid : true
Expand Down Expand Up @@ -51,13 +52,14 @@ def valid_queries(spline, queries):
)
return True


class Checker:
"""Helper class to allow direct extraction from spline obj (BSpline or
NURBS). Internal use only.
Examples
---------
.. code-block :: python
spline.check.valid_queries(queries)
Expand All @@ -72,4 +74,4 @@ def __init__(self, spl):
self._spline = spl

def valid_queries(self, queries):
return valid_queries(self._spline, queries)
return valid_queries(self._spline, queries)

0 comments on commit 1ceae3a

Please sign in to comment.