From 17cdfa0c1a7b494c78712956ded651a84c3fd88d Mon Sep 17 00:00:00 2001 From: Paloma Martinez <104762252+paloma-martinez@users.noreply.github.com> Date: Tue, 20 Jan 2026 15:45:03 +0100 Subject: [PATCH 1/2] Remove condition missing from last PR --- .../processing/post_processing/GeomechanicsCalculator.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/geos-processing/src/geos/processing/post_processing/GeomechanicsCalculator.py b/geos-processing/src/geos/processing/post_processing/GeomechanicsCalculator.py index 6e4c36dc..65f0b2b0 100644 --- a/geos-processing/src/geos/processing/post_processing/GeomechanicsCalculator.py +++ b/geos-processing/src/geos/processing/post_processing/GeomechanicsCalculator.py @@ -742,9 +742,8 @@ def applyFilter( self: Self ) -> None: if attribute.nbComponent == 6: componentNames = ComponentNameEnum.XYZ.value - if not createAttribute( - self.output, array, attributeName, componentNames=componentNames, piece=piece, logger=self.logger ): - raise ValueError( f"Something went wrong during the creation of the attribute { attributeName }." ) + createAttribute( + self.output, array, attributeName, componentNames=componentNames, piece=piece, logger=self.logger ) self.logger.info( "All the geomechanics properties have been added to the mesh." ) self.logger.info( f"The filter { self.logger.name } succeeded." ) From 43035e17ce74b0f04b0da9a6a5ea034013b8389c Mon Sep 17 00:00:00 2001 From: Paloma Martinez <104762252+paloma-martinez@users.noreply.github.com> Date: Wed, 21 Jan 2026 10:06:00 +0100 Subject: [PATCH 2/2] yapf --- .../processing/post_processing/GeomechanicsCalculator.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/geos-processing/src/geos/processing/post_processing/GeomechanicsCalculator.py b/geos-processing/src/geos/processing/post_processing/GeomechanicsCalculator.py index 65f0b2b0..d5eba251 100644 --- a/geos-processing/src/geos/processing/post_processing/GeomechanicsCalculator.py +++ b/geos-processing/src/geos/processing/post_processing/GeomechanicsCalculator.py @@ -742,8 +742,12 @@ def applyFilter( self: Self ) -> None: if attribute.nbComponent == 6: componentNames = ComponentNameEnum.XYZ.value - createAttribute( - self.output, array, attributeName, componentNames=componentNames, piece=piece, logger=self.logger ) + createAttribute( self.output, + array, + attributeName, + componentNames=componentNames, + piece=piece, + logger=self.logger ) self.logger.info( "All the geomechanics properties have been added to the mesh." ) self.logger.info( f"The filter { self.logger.name } succeeded." )