Skip to content

Conversation

@RomainBaville
Copy link
Contributor

@RomainBaville RomainBaville commented Oct 28, 2025

This pr aims to:

  • Apply SISO decorator to the PVGeomechanicsCalculator plugin
  • Update the error managment to raise error insteed of using function with boolean
  • Adatpte the PVGeomechanicsCalculator plugin to deals with vtu and vtm of vtu

Copy link
Contributor

@jafranc jafranc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kudos !! Great to see SISO can be expanded 👍

Comment on lines 750 to 753
except ValueError as ve:
self.logger.error( f"The filter failed.\n{ ve }." )
except TypeError as te:
self.logger.error( f"The filter failed.\n{ te }." )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
except ValueError as ve:
self.logger.error( f"The filter failed.\n{ ve }." )
except TypeError as te:
self.logger.error( f"The filter failed.\n{ te }." )
except (TypeError, ValueError) as e:
self.logger.error( f"The filter failed.\n{ e }." )

Returns:
bool: True if calculation successfully ended, False otherwise.
"""
def _computeLithostaticStress( self: Self ) -> None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe comment or leave a note and logging note for user not to actually call it IF the formula is not right

@jafranc
Copy link
Contributor

jafranc commented Oct 29, 2025

Kudos !! Great to see SISO can be expanded 👍

Almost forgot can you test that GeomechanicsCalculator raise the correct error when expected

@paloma-martinez paloma-martinez merged commit c8aabe5 into main Oct 31, 2025
54 checks passed
@paloma-martinez paloma-martinez deleted the RomainBaville/refactor/UseSISOForGeomechanicsCalculator branch October 31, 2025 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants