8000 WIP Use griffe instead of runtime walker · lagru/scikit-image@7576912 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7576912

Browse files
committed
WIP Use griffe instead of runtime walker
1 parent 6c60eaa commit 7576912

File tree

2 files changed

+104
-395
lines changed

2 files changed

+104
-395
lines changed

skimage/transform/tests/test_geometric.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,12 @@ def test_union_differing_types():
581581
tform1.__add__(tform2)
582582

583583

584+
def _estimated_piecewise_affine_transform():
585+
tform = PiecewiseAffineTransform()
586+
tform.estimate(SRC, DST)
587+
return tform
588+
589+
584590
@pytest.mark.parametrize(
585591
"tform",
586592
[
@@ -596,7 +602,7 @@ def test_union_differing_types():
596602
rotation=np.eye(3), translation=(1 / np.sqrt(2), 1 / np.sqrt(2), 0)
597603
).params
598604
),
599-
((t := PiecewiseAffineTransform()).estimate(SRC, DST) and t),
605+
_estimated_piecewise_affine_transform(),
600606
],
601607
)
602608
def test_inverse_all_transforms(tform):

0 commit comments

Comments
 (0)
0