99
1010from paraview .util .vtkAlgorithm import ( # type: ignore[import-not-found]
1111 VTKPythonAlgorithmBase , smdomain , smhint , smproperty , smproxy ,
12- ) # source: https://github.com/Kitware/ParaView/blob/master/Wrapping/Python/paraview/util/vtkAlgorithm.py
12+ ) # source: https://github.com/Kitware/ParaView/blob/master/Wrapping/Python/paraview/util/vtkAlgorithm.py
1313from paraview .detail .loghandler import ( # type: ignore[import-not-found]
1414 VTKHandler ,
15- ) # source: https://github.com/Kitware/ParaView/blob/master/Wrapping/Python/paraview/detail/loghandler.py
15+ ) # source: https://github.com/Kitware/ParaView/blob/master/Wrapping/Python/paraview/detail/loghandler.py
1616
1717from vtkmodules .vtkCommonDataModel import (
1818 vtkMultiBlockDataSet , )
3030update_paths ()
3131
3232from geos .mesh .processing .FillPartialArrays import FillPartialArrays
33- # import geos.pv.utils.details
33+
3434__doc__ = """
3535Fill partial arrays of input mesh.
3636
5454 dataTypes = [ "vtkMultiBlockDataSet" ],
5555 composite_data_supported = True ,
5656)
57- # @geos.pv.utils.details.SISOFilter(decorated_name="PVFillPartialArrays", decorated_label="Fill Partial Arrays",decorated_type="vtkMultiBlockDataSet")
58- class PVFillPartialArrays (VTKPythonAlgorithmBase ):
57+ class PVFillPartialArrays ( VTKPythonAlgorithmBase ):
5958
6059 def __init__ ( self : Self , ) -> None :
6160 """Fill a partial attribute with constant value per component."""
@@ -67,8 +66,7 @@ def __init__( self: Self, ) -> None:
6766 self .clearDictAttributesValues : bool = True
6867 self .dictAttributesValues : dict [ str , Union [ list [ Any ], None ] ] = {}
6968
70-
71- @smproperty .xml ("""
69+ @smproperty .xml ( """
7270 <StringVectorProperty
7371 name="AttributeTable"
7472 number_of_elements="2"
@@ -80,7 +78,7 @@ def __init__( self: Self, ) -> None:
8078 attributeName | fillingValueComponent1 fillingValueComponent2 ...\n
8179 To fill the attribute with the default value, live a blanc. The default value is:\n
8280 0 for uint type, -1 for int type and nan for float type.
83- </Documentation>
81+ </Documentation>
8482 <Hints>
8583 <AllowRestoreDefaults />
8684 <ShowComponentLabels>
@@ -102,10 +100,10 @@ def _setDictAttributesValues( self: Self, attributeName: str, values: str ) -> N
102100 self .clearDictAttributesValues = False
103101
104102 if attributeName is not None :
105- if values is not None :
103+ if values is not None :
106104 self .dictAttributesValues [ attributeName ] = list ( values .split ( "," ) )
107105 else :
108- self .dictAttributesValues [ attributeName ] = None
106+ self .dictAttributesValues [ attributeName ] = None # type: ignore[unreachable]
109107
110108 self .Modified ()
111109
@@ -156,9 +154,10 @@ def RequestData(
156154
157155 outputMesh .ShallowCopy ( inputMesh )
158156
159- filter : FillPartialArrays = FillPartialArrays ( outputMesh ,
160- self .dictAttributesValues ,
161- speHandler = True ,
157+ filter : FillPartialArrays = FillPartialArrays (
158+ outputMesh ,
159+ self .dictAttributesValues ,
160+ speHandler = True ,
162161 )
163162
164163 if not filter .logger .hasHandlers ():
0 commit comments