Skip to content

Commit

Permalink
Fix: split first instance check and insert f for string
Browse files Browse the repository at this point in the history
  • Loading branch information
OberGue committed Nov 8, 2024
1 parent 31cfe13 commit 18b3ff0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions splinepy/helpme/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def swept(

### INPUT CHECKS ###

if isinstance(cross_section and trajectory, Spline):
if isinstance(cross_section, Spline) and isinstance(trajectory, Spline):
if not isinstance(cross_section, (_BSpline, _NURBS)):
raise TypeError(
"cross_section must be an instance of BSpline or NURBS"
Expand Down Expand Up @@ -431,8 +431,8 @@ def swept(
e1 = tang_collection[-1]
# add debug message
_log.debug(
"Division by zero occurred. Applying an approximation "
"by using the previous tangent e1 for parametric value {par_value[i]}"
f"Division by zero occurred. Applying an approximation "
f"by using the previous tangent e1 for parametric value {par_value[i]}"
)
e1 = (e1 / _np.linalg.norm(e1)).ravel()
# collecting tangent vectors for later use
Expand Down

0 comments on commit 18b3ff0

Please sign in to comment.