Skip to content

Commit e5045e9

Browse files
fix: Remove a missing condition from PR 197 (#211)
1 parent 1d5ac85 commit e5045e9

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

geos-processing/src/geos/processing/post_processing/GeomechanicsCalculator.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -742,9 +742,12 @@ def applyFilter( self: Self ) -> None:
742742
if attribute.nbComponent == 6:
743743
componentNames = ComponentNameEnum.XYZ.value
744744

745-
if not createAttribute(
746-
self.output, array, attributeName, componentNames=componentNames, piece=piece, logger=self.logger ):
747-
raise ValueError( f"Something went wrong during the creation of the attribute { attributeName }." )
745+
createAttribute( self.output,
746+
array,
747+
attributeName,
748+
componentNames=componentNames,
749+
piece=piece,
750+
logger=self.logger )
748751

749752
self.logger.info( "All the geomechanics properties have been added to the mesh." )
750753
self.logger.info( f"The filter { self.logger.name } succeeded." )

0 commit comments

Comments
 (0)