Skip to content

Commit

Permalink
Ran nox -s blacken with updated deps.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhermes committed Jun 17, 2024
1 parent b0fe44c commit 19656b7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/python/bezier/hazmat/algebraic_intersection.py
Original file line number Diff line number Diff line change
Expand Up @@ -715,9 +715,9 @@ def bernstein_companion(coeffs):

companion = np.zeros((effective_degree, effective_degree), order="F")
# pylint: disable=unsupported-assignment-operation
companion.flat[
effective_degree :: effective_degree + 1 # noqa: E203
] = 1.0
companion.flat[effective_degree :: effective_degree + 1] = ( # noqa: E203
1.0
)
# pylint: enable=unsupported-assignment-operation
companion[0, :] = -sigma_coeffs[::-1]
return companion, degree, effective_degree
Expand Down
7 changes: 1 addition & 6 deletions tests/unit/test__symbolic.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,7 @@ def test_it(self):
f_polynomial = self._call_function_under_test(x_fn, y_fn, s)

expected = (
x_sym**2
+ 2 * x_sym * y_sym
- 3 * x_sym
+ y_sym**2
- 4 * y_sym
+ 3
x_sym**2 + 2 * x_sym * y_sym - 3 * x_sym + y_sym**2 - 4 * y_sym + 3
)
assert sympy_equal(f_polynomial, expected)

Expand Down
4 changes: 1 addition & 3 deletions tests/unit/test_curve.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,7 @@ def _intersect_helper(self, **kwargs):
right = self._make_one(nodes_right, 2)
result = left.intersect(right, **kwargs)
expected = np.asfortranarray([[1.0], [2.0]]) / 3.0
self.assertTrue(
np.allclose(result, expected, atol=0.0, rtol=0.5**52)
)
self.assertTrue(np.allclose(result, expected, atol=0.0, rtol=0.5**52))

def test_intersect(self):
self._intersect_helper()
Expand Down

0 comments on commit 19656b7

Please sign in to comment.