|
58 | 58 | np.nan ), np.float64( np.nan ), np.float64( np.nan ) ], VTK_DOUBLE ), |
59 | 59 | # Test fill attributes with different number of component with or without component names. |
60 | 60 | ( 3, "PORO", 1, (), False, None, [ np.float32( np.nan ) ], VTK_FLOAT ), |
61 | | - ( 1, "collocatedNodes", 2, ( None, None ), True, None, [ np.int64( -1 ), np.int64( -1 ) ], VTK_ID_TYPE ), |
| 61 | + ( 1, "collocated_nodes", 2, ( None, None ), True, None, [ np.int64( -1 ), np.int64( -1 ) ], VTK_ID_TYPE ), |
62 | 62 | # Test fill an attribute with different type of value. |
63 | 63 | ( 3, "FAULT", 1, (), False, None, [ np.int32( -1 ) ], VTK_INT ), |
64 | 64 | ( 3, "FAULT", 1, (), False, [ 4 ], [ np.int32( 4 ) ], VTK_INT ), |
65 | 65 | ( 3, "PORO", 1, (), False, [ 4 ], [ np.float32( 4 ) ], VTK_FLOAT ), |
66 | | - ( 1, "collocatedNodes", 2, ( None, None ), True, [ 4, 4 ], [ np.int64( 4 ), np.int64( 4 ) ], VTK_ID_TYPE ), |
| 66 | + ( 1, "collocated_nodes", 2, ( None, None ), True, [ 4, 4 ], [ np.int64( 4 ), np.int64( 4 ) ], VTK_ID_TYPE ), |
67 | 67 | ( 3, "CellAttribute", 3, ( "AX1", "AX2", "AX3" ), False, [ 4, 4, 4 ], |
68 | 68 | [ np.float64( 4 ), np.float64( 4 ), np.float64( 4 ) ], VTK_DOUBLE ), |
69 | 69 | ] ) |
@@ -140,7 +140,7 @@ def test_FillAllPartialAttributes( |
140 | 140 | for blockIndex in elementaryBlockIndexes: |
141 | 141 | dataSet: vtkDataSet = vtkDataSet.SafeDownCast( multiBlockDataSetTest.GetDataSet( blockIndex ) ) |
142 | 142 | attributeExist: int |
143 | | - for attributeNameOnPoint in [ "PointAttribute", "collocatedNodes" ]: |
| 143 | + for attributeNameOnPoint in [ "PointAttribute", "collocated_nodes" ]: |
144 | 144 | attributeExist = dataSet.GetPointData().HasArray( attributeNameOnPoint ) |
145 | 145 | assert attributeExist == 1 |
146 | 146 | for attributeNameOnCell in [ "CELL_MARKERS", "CellAttribute", "FAULT", "PERM", "PORO" ]: |
@@ -482,7 +482,7 @@ def test_copyAttributeDataSet( |
482 | 482 |
|
483 | 483 |
|
484 | 484 | @pytest.mark.parametrize( "meshFromName, meshToName, attributeName, onPoints, defaultValueTest", [ |
485 | | - ( "fracture", "emptyFracture", "collocatedNodes", True, [ -1, -1 ] ), |
| 485 | + ( "fracture", "emptyFracture", "collocated_nodes", True, [ -1, -1 ] ), |
486 | 486 | ( "multiblock", "emptyFracture", "FAULT", False, -1 ), |
487 | 487 | ( "multiblock", "emptymultiblock", "FAULT", False, -1 ), |
488 | 488 | ( "dataset", "emptymultiblock", "FAULT", False, -1 ), |
|
0 commit comments