-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: Move and refactor Mohr Circle plugin #166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
RomainBaville
left a comment
There was a problem hiding this 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(): |
There was a problem hiding this comment.
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(): |
There was a problem hiding this comment.
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
This PR consists mainly in the move of the
MohrCircleplugin and related utils functions fromgeos-posptogeos-pv, as part of the EPIC #54