Skip to content

Commit 8bc9e97

Browse files
authored
Clean up test_MeshToMeshInterpolator.py by removing comments
Removed commented-out code for output generation in tests.
1 parent 25ae7bd commit 8bc9e97

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

geos-processing/tests/test_MeshToMeshInterpolator.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,6 @@ def test_MeshToMeshInterpolator( dataSetTest: Any, meshFromName: str, meshToName
3838
a1 = vtk_to_numpy( meshTo.GetCellData().GetArray( f"mapped{attrib.capitalize()}" ) )
3939
assert np.linalg.norm( a0 ) == pytest.approx( np.linalg.norm( a1 ), rel=1e-2, abs=0 )
4040

41-
# output = meshToMeshInterpolator.getOutput()
42-
# w = vtkXMLUnstructuredGridWriter()
43-
# w.SetFileName( "/data/pau901/SIM_CS/04_WORKSPACE/USERS/jfranc/tmp/test_crumbs/test0.vtu" )
44-
# w.SetInputData( output )
45-
# w.Update()
46-
# w.Write()
47-
48-
4941
@pytest.mark.parametrize( "meshFromName, meshToName, attributeNames,attributeRegionsName,regionIds", [
5042
( "rank0WithAttr", "mergeVolumeWithAttr", { "elementVolume" }, "attributes", { 4, 5 } ),
5143
] )
@@ -73,14 +65,6 @@ def test_AttributeOnly_MeshToMeshInterpolator( dataSetTest: Any, meshFromName: s
7365
mask |= ( attr == rid )
7466
assert np.linalg.norm( a0[ mask ] ) == pytest.approx( np.linalg.norm( a1 ), rel=1e-2, abs=0 )
7567

76-
# output = meshToMeshInterpolator.getOutput()
77-
# w = vtkXMLUnstructuredGridWriter()
78-
# w.SetFileName(f"/data/pau901/SIM_CS/04_WORKSPACE/USERS/jfranc/tmp/test_crumbs/test.vtu")
79-
# w.SetInputData(output)
80-
# w.Update()
81-
# w.Write()
82-
83-
8468
@pytest.mark.parametrize( "meshFromName, meshToName, attributeNames", [
8569
( "extractAndMergeFault", "extractAndMergeVolume", { "Texture Coordinates" } ),
8670
] )
@@ -97,8 +81,6 @@ def test_ExpectedFailure_MeshToMeshInterpolator( dataSetTest: Any, meshFromName:
9781
with pytest.raises( NotImplementedError ):
9882
MeshToMeshInterpolator( meshFrom, meshTo, attributeNames )
9983

100-
101-
# TODO test surfaces extractions
10284
@pytest.mark.parametrize( "meshFromName, meshToName, attributeNames", [
10385
( "hasFault", "hasFault", { "elementVolume" } ),
10486
] )

0 commit comments

Comments
 (0)