Skip to content

Commit e14a065

Browse files
committed
fix ruff
1 parent 5b7a2af commit e14a065

File tree

8 files changed

+10
-9
lines changed

8 files changed

+10
-9
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ def applyFilter( self: Self ) -> None:
140140
if splitMethod is not None:
141141
splitMethod( cell, c )
142142
else:
143-
raise TypeError( f"Cell type { vtkCellTypes.GetClassNameFromTypeId( cellType ) } is not supported." )
143+
raise TypeError(
144+
f"Cell type { vtkCellTypes.GetClassNameFromTypeId( cellType ) } is not supported." )
144145
# add points and cells
145146
self.outputMesh.SetPoints( self.points )
146147
self.outputMesh.SetCells( self.cellTypes, self.cells )
@@ -454,4 +455,4 @@ def _transferCellArrays( self: Self, splittedMesh: vtkUnstructuredGrid ) -> bool
454455
cellDataSplitted.AddArray( newArray )
455456
cellDataSplitted.Modified()
456457
splittedMesh.Modified()
457-
return True
458+
return True

geos-processing/src/geos/processing/pre_processing/CellTypeCounterEnhanced.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,4 @@ def GetCellTypeCountsObject( self: Self ) -> CellTypeCounts:
127127

128128
def getOutput( self: Self ) -> vtkTable:
129129
"""Get the computed vtkTable."""
130-
return self.outTable
130+
return self.outTable

geos-processing/src/geos/processing/pre_processing/MeshQualityEnhanced.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,4 +808,4 @@ def _getNormalVector( self: Self, points: vtkPoints, face: vtkCell ) -> npt.NDAr
808808
ptsCoords: npt.NDArray[ np.float64 ] = np.zeros( ( 3, 3 ), dtype=float )
809809
for i in range( 3 ):
810810
points.GetPoint( facePtsIds.GetId( i ), ptsCoords[ i ] )
811-
return geom.computeNormalFromPoints( ptsCoords[ 0 ], ptsCoords[ 1 ], ptsCoords[ 2 ] )
811+
return geom.computeNormalFromPoints( ptsCoords[ 0 ], ptsCoords[ 1 ], ptsCoords[ 2 ] )

geos-processing/tests/test_CellTypeCounterEnhanced.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,4 @@ def test_CellTypeCounterEnhanced_multi( test_case: TestCase ) -> None:
142142
nbPolyhedra: int = np.sum( counts[ 2: ], dtype=int )
143143
assert int( countsObs.getTypeCount( VTK_POLYGON ) ) == nbPolygon, f"The number of faces should be {nbPolygon}."
144144
assert int(
145-
countsObs.getTypeCount( VTK_POLYHEDRON ) ) == nbPolyhedra, f"The number of polyhedra should be {nbPolyhedra}."
145+
countsObs.getTypeCount( VTK_POLYHEDRON ) ) == nbPolyhedra, f"The number of polyhedra should be {nbPolyhedra}."

geos-processing/tests/test_MeshQualityEnhanced.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,4 +188,4 @@ def test_MeshQualityEnhanced( test_case: TestCase ) -> None:
188188
test_case.metricsSummary[ j ] ), f"Stats at metric index {j} are wrong."
189189

190190
fig: Figure = stats.plotSummaryFigure()
191-
assert len( fig.get_axes() ) == 6, "Number of Axes is expected to be 6."
191+
assert len( fig.get_axes() ) == 6, "Number of Axes is expected to be 6."

geos-pv/src/geos/pv/plugins/PVCellTypeCounterEnhanced.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,4 @@ def RequestData(
150150
cellTypeCounterEnhancedFilter.logger.info( f"File {self._filename} was successfully written." )
151151
except Exception as e:
152152
cellTypeCounterEnhancedFilter.logger.info( f"Error while exporting the file due to:\n{ e }" )
153-
return 1
153+
return 1

geos-pv/src/geos/pv/plugins/PVMeshQualityEnhanced.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,4 +331,4 @@ def __initSurfaceQualityMetricSelection( self: Self ) -> None:
331331
otherMetrics: set[ int ] = getQualityMetricsOther()
332332
for measure in otherMetrics:
333333
# TODO: fix issue with incident vertex count metrics
334-
self._commonMeshQualityMetric.AddArray( getQualityMeasureNameFromIndex( measure ), False )
334+
self._commonMeshQualityMetric.AddArray( getQualityMeasureNameFromIndex( measure ), False )

geos-pv/src/geos/pv/plugins/PVSplitMesh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ def ApplyFilter( self: Self, inputMesh: vtkPointSet, outputMesh: vtkPointSet ) -
5656
splitMeshFilter.applyFilter()
5757
outputMesh.ShallowCopy( splitMeshFilter.getOutput() )
5858

59-
return
59+
return

0 commit comments

Comments
 (0)