diff --git a/geos-processing/src/geos/processing/generic_processing_tools/AttributeMapping.py b/geos-processing/src/geos/processing/generic_processing_tools/AttributeMapping.py index 9eb7aa6fe..8afb02ab6 100644 --- a/geos-processing/src/geos/processing/generic_processing_tools/AttributeMapping.py +++ b/geos-processing/src/geos/processing/generic_processing_tools/AttributeMapping.py @@ -197,5 +197,6 @@ def applyFilter( self: Self ) -> bool: def _logOutputMessage( self: Self ) -> None: """Create and log result messages of the filter.""" self.logger.info( f"The filter { self.logger.name } succeeded." ) - self.logger.info( f"The { self.piece } attributes { self.attributeNames } have been transferred from the source" - " mesh to the final mesh with the { self.piece } mapping." ) + self.logger.info( + f"The { self.piece } attributes { self.attributeNames } have been transferred from the source mesh to the final mesh with the { self.piece } mapping." + ) diff --git a/geos-pv/src/geos/pv/plugins/PVAttributeMapping.py b/geos-pv/src/geos/pv/plugins/PVAttributeMapping.py index a8dfc28c2..037ce55ab 100644 --- a/geos-pv/src/geos/pv/plugins/PVAttributeMapping.py +++ b/geos-pv/src/geos/pv/plugins/PVAttributeMapping.py @@ -15,6 +15,7 @@ update_paths() from geos.processing.generic_processing_tools.AttributeMapping import AttributeMapping + from paraview.util.vtkAlgorithm import ( # type: ignore[import-not-found] VTKPythonAlgorithmBase, smdomain, smhint, smproperty, smproxy, ) @@ -97,7 +98,7 @@ def setAttributePiece( self: Self, piece: int ) -> None: Args: piece (int): 0 if on points, 1 if on cells. """ - self.onPoints = bool( piece ) + self.onPoints = not bool( piece ) self.Modified() @smproperty.stringvector(