Skip to content

Conversation

@paloma-martinez
Copy link
Collaborator

@paloma-martinez paloma-martinez commented Nov 3, 2025

This PR consists mainly in the move of the MohrCircle plugin and related utils functions from geos-posp to geos-pv, as part of the EPIC #54

Copy link
Contributor

@RomainBaville RomainBaville left a comment

Choose a reason for hiding this comment

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

Thank for you work, it looks good to me

if logger is None:
logger = logging.getLogger( "getVtkOriginalCellIds" )

if not logger.hasHandlers():
Copy link
Contributor

Choose a reason for hiding this comment

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

You may use logger.handlers and check if it is empty. With logger.hasHandler() if any parent of the logger have one it will return True even if the logger do not have any handler

# Logger
self.logger: logging.Logger = logging.getLogger( "MohrCircle" )
self.logger.setLevel( logging.INFO )
if not self.logger.hasHandlers():
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as before, you may check the number of handler

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.

3 participants