|
54 | 54 |
|
55 | 55 | # Set the attributes to compare: |
56 | 56 | dictAttributesToCompare: dict[ Piece, set[ str ] ] |
57 | | - attributesDiffFilter.setDicAttributesToCompare( dicAttributesToCompare ) |
| 57 | + attributesDiffFilter.setDictAttributesToCompare( dictAttributesToCompare ) |
58 | 58 |
|
59 | 59 | # Set the inf norm computation (if wanted): |
60 | 60 | computeInfNorm: bool |
@@ -146,11 +146,11 @@ def setMeshes( |
146 | 146 | if listMeshes[ 0 ].GetClassName() != listMeshes[ 1 ].GetClassName(): |
147 | 147 | raise TypeError( f"The meshes must have the same type. {listMeshes[0].GetClassName()} and {listMeshes[1].GetClassName()}" ) |
148 | 148 |
|
149 | | - dicMeshesMaxElementId: dict[ Piece, list[ int ] ] = {} |
| 149 | + dictMeshesMaxElementId: dict[ Piece, list[ int ] ] = {} |
150 | 150 | if self.computeCells: |
151 | | - dicMeshesMaxElementId.update({ Piece.CELLS: [ 0, 0 ]}) |
| 151 | + dictMeshesMaxElementId.update({ Piece.CELLS: [ 0, 0 ]}) |
152 | 152 | if self.computePoints: |
153 | | - dicMeshesMaxElementId.update({ Piece.POINTS: [ 0, 0 ]}) |
| 153 | + dictMeshesMaxElementId.update({ Piece.POINTS: [ 0, 0 ]}) |
154 | 154 |
|
155 | 155 | if isinstance( listMeshes[ 0 ], vtkDataSet ): |
156 | 156 | for meshId, mesh in enumerate( listMeshes ): |
@@ -180,9 +180,9 @@ def setMeshes( |
180 | 180 |
|
181 | 181 | self.listMeshes = listMeshes |
182 | 182 | if self.computeCells: |
183 | | - self.dicNbElements[ Piece.CELLS ] = dicMeshesMaxElementId[ Piece.CELLS ][ 0 ] + 1 |
| 183 | + self.dictNbElements[ Piece.CELLS ] = dictMeshesMaxElementId[ Piece.CELLS ][ 0 ] + 1 |
184 | 184 | if self.computePoints: |
185 | | - self.dicNbElements[ Piece.POINTS ] = dicMeshesMaxElementId[ Piece.POINTS ][ 0 ] + 1 |
| 185 | + self.dictNbElements[ Piece.POINTS ] = dictMeshesMaxElementId[ Piece.POINTS ][ 0 ] + 1 |
186 | 186 | self.outputMesh = listMeshes[ 0 ].NewInstance() |
187 | 187 | self.outputMesh.ShallowCopy( listMeshes[ 0 ] ) |
188 | 188 | self._computeDictSharedAttributes() |
@@ -229,8 +229,8 @@ def setDictAttributesToCompare( self: Self, dictAttributesToCompare: dict[ Piece |
229 | 229 | Raises: |
230 | 230 | ValueError: At least one attribute to compare is not a shared attribute. |
231 | 231 | """ |
232 | | - assert not ((Piece.CELLS in dicAttributesToCompare) ^ (self.computeCells)) |
233 | | - assert not ((Piece.POINTS in dicAttributesToCompare) ^ (self.computePoints)) |
| 232 | + assert not ((Piece.CELLS in dictAttributesToCompare) ^ (self.computeCells)) |
| 233 | + assert not ((Piece.POINTS in dictAttributesToCompare) ^ (self.computePoints)) |
234 | 234 |
|
235 | 235 | for piece, setSharedAttributesToCompare in dictAttributesToCompare.items(): |
236 | 236 | if not setSharedAttributesToCompare.issubset( self.dictSharedAttributes[ piece ] ): |
|
0 commit comments