Skip to content

Commit 49c91f8

Browse files
fix: fix onPoint attribute value in plugin PVAttributeMapping (#190)
1 parent e249501 commit 49c91f8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,5 +197,6 @@ def applyFilter( self: Self ) -> bool:
197197
def _logOutputMessage( self: Self ) -> None:
198198
"""Create and log result messages of the filter."""
199199
self.logger.info( f"The filter { self.logger.name } succeeded." )
200-
self.logger.info( f"The { self.piece } attributes { self.attributeNames } have been transferred from the source"
201-
" mesh to the final mesh with the { self.piece } mapping." )
200+
self.logger.info(
201+
f"The { self.piece } attributes { self.attributeNames } have been transferred from the source mesh to the final mesh with the { self.piece } mapping."
202+
)

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
update_paths()
1616

1717
from geos.processing.generic_processing_tools.AttributeMapping import AttributeMapping
18+
1819
from paraview.util.vtkAlgorithm import ( # type: ignore[import-not-found]
1920
VTKPythonAlgorithmBase, smdomain, smhint, smproperty, smproxy,
2021
)
@@ -97,7 +98,7 @@ def setAttributePiece( self: Self, piece: int ) -> None:
9798
Args:
9899
piece (int): 0 if on points, 1 if on cells.
99100
"""
100-
self.onPoints = bool( piece )
101+
self.onPoints = not bool( piece )
101102
self.Modified()
102103

103104
@smproperty.stringvector(

0 commit comments

Comments
 (0)