Skip to content

Commit b19c934

Browse files
authored
Fix variable name typos in AttributesDiff.py
1 parent 289d29d commit b19c934

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

geos-processing/src/geos/processing/generic_processing_tools/AttributesDiff.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
5555
# Set the attributes to compare:
5656
dictAttributesToCompare: dict[ Piece, set[ str ] ]
57-
attributesDiffFilter.setDicAttributesToCompare( dicAttributesToCompare )
57+
attributesDiffFilter.setDictAttributesToCompare( dictAttributesToCompare )
5858
5959
# Set the inf norm computation (if wanted):
6060
computeInfNorm: bool
@@ -146,11 +146,11 @@ def setMeshes(
146146
if listMeshes[ 0 ].GetClassName() != listMeshes[ 1 ].GetClassName():
147147
raise TypeError( f"The meshes must have the same type. {listMeshes[0].GetClassName()} and {listMeshes[1].GetClassName()}" )
148148

149-
dicMeshesMaxElementId: dict[ Piece, list[ int ] ] = {}
149+
dictMeshesMaxElementId: dict[ Piece, list[ int ] ] = {}
150150
if self.computeCells:
151-
dicMeshesMaxElementId.update({ Piece.CELLS: [ 0, 0 ]})
151+
dictMeshesMaxElementId.update({ Piece.CELLS: [ 0, 0 ]})
152152
if self.computePoints:
153-
dicMeshesMaxElementId.update({ Piece.POINTS: [ 0, 0 ]})
153+
dictMeshesMaxElementId.update({ Piece.POINTS: [ 0, 0 ]})
154154

155155
if isinstance( listMeshes[ 0 ], vtkDataSet ):
156156
for meshId, mesh in enumerate( listMeshes ):
@@ -180,9 +180,9 @@ def setMeshes(
180180

181181
self.listMeshes = listMeshes
182182
if self.computeCells:
183-
self.dicNbElements[ Piece.CELLS ] = dicMeshesMaxElementId[ Piece.CELLS ][ 0 ] + 1
183+
self.dictNbElements[ Piece.CELLS ] = dictMeshesMaxElementId[ Piece.CELLS ][ 0 ] + 1
184184
if self.computePoints:
185-
self.dicNbElements[ Piece.POINTS ] = dicMeshesMaxElementId[ Piece.POINTS ][ 0 ] + 1
185+
self.dictNbElements[ Piece.POINTS ] = dictMeshesMaxElementId[ Piece.POINTS ][ 0 ] + 1
186186
self.outputMesh = listMeshes[ 0 ].NewInstance()
187187
self.outputMesh.ShallowCopy( listMeshes[ 0 ] )
188188
self._computeDictSharedAttributes()
@@ -229,8 +229,8 @@ def setDictAttributesToCompare( self: Self, dictAttributesToCompare: dict[ Piece
229229
Raises:
230230
ValueError: At least one attribute to compare is not a shared attribute.
231231
"""
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))
234234

235235
for piece, setSharedAttributesToCompare in dictAttributesToCompare.items():
236236
if not setSharedAttributesToCompare.issubset( self.dictSharedAttributes[ piece ] ):

0 commit comments

Comments
 (0)