File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ def test_ident_distances(tmpdir):
21
21
dist_ident = m .ComputeMeshWarp ()
22
22
dist_ident .inputs .surface1 = in_surf
23
23
dist_ident .inputs .surface2 = in_surf
24
- dist_ident .inputs .out_file = tmpdir .join ('distance.npy' )
24
+ dist_ident .inputs .out_file = tmpdir .join ('distance.npy' ). strpath
25
25
res = dist_ident .run ()
26
26
assert res .outputs .distance == 0.0
27
27
@@ -35,7 +35,7 @@ def test_trans_distances(tmpdir):
35
35
from ...interfaces .vtkbase import tvtk
36
36
37
37
in_surf = example_data ('surf01.vtk' )
38
- warped_surf = tmpdir .join ('warped.vtk' )
38
+ warped_surf = tmpdir .join ('warped.vtk' ). strpath
39
39
40
40
inc = np .array ([0.7 , 0.3 , - 0.2 ])
41
41
@@ -51,7 +51,7 @@ def test_trans_distances(tmpdir):
51
51
dist = m .ComputeMeshWarp ()
52
52
dist .inputs .surface1 = in_surf
53
53
dist .inputs .surface2 = warped_surf
54
- dist .inputs .out_file = tmpdir .join ('distance.npy' )
54
+ dist .inputs .out_file = tmpdir .join ('distance.npy' ). strpath
55
55
res = dist .run ()
56
56
assert np .allclose (res .outputs .distance , np .linalg .norm (inc ), 4 )
57
57
dist .inputs .weighting = 'area'
You can’t perform that action at this time.
0 commit comments