Skip to content

Commit 2db309c

Browse files
Yapf again
1 parent fa7517b commit 2db309c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

geos-mesh/src/geos/mesh/model/QualityMetricSummary.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def getType( self: Self ) -> object:
7979
"""
8080
return self.value[ 2 ]
8181

82-
def compute( self: Self, array: Iterable[ float ] ) -> Union [ int, float ]:
82+
def compute( self: Self, array: Iterable[ float ] ) -> Union[ int, float ]:
8383
"""Compute statistics using function.
8484
8585
Args:
@@ -286,7 +286,8 @@ def getStatsFromMetric(
286286
else:
287287
return self._meshOtherStats[ metricIndex ]
288288

289-
def setOtherStatValueFromMetric( self: Self, metricIndex: int, statType: StatTypes, value: Union[ int, float ] ) -> None:
289+
def setOtherStatValueFromMetric( self: Self, metricIndex: int, statType: StatTypes, value: Union[ int,
290+
float ] ) -> None:
290291
"""Set other stat value for the given metric.
291292
292293
Args:

geos-mesh/src/geos/mesh/utils/arrayHelpers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ def getNumpyGlobalIdsArray( data: Union[ vtkCellData, vtkPointData ] ) -> Option
137137
return vtk_to_numpy( global_ids )
138138

139139

140-
def getNumpyArrayByName( data: Union[ vtkCellData, vtkPointData], name: str, sorted: bool = False ) -> Optional[ npt.NDArray ]:
140+
def getNumpyArrayByName( data: Union[ vtkCellData, vtkPointData ],
141+
name: str,
142+
sorted: bool = False ) -> Optional[ npt.NDArray ]:
141143
"""Get the numpy array of a given vtkDataArray found by its name.
142144
143145
If sorted is selected, this allows the option to reorder the values wrt GlobalIds. If not GlobalIds was found,

0 commit comments

Comments
 (0)