Skip to content

feat: Perform all mesh-doctor checks at once #100

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

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

alexbenedicto
Copy link
Contributor

@alexbenedicto alexbenedicto commented Jun 5, 2025

Closes #94

The goal of this PR is to create a new feature called all_checks that will be able to call every mesh-doctor already implemented that only performed "quality" checking of the mesh such as collocated_nodes, element_volumes.

So now, using this following line:

mesh-doctor -i mesh_to_analyze.vtu all_checks

Is equivalent to performing these checks successively:

mesh-doctor -i mesh_to_analyze.vtu collocated_nodes
mesh-doctor -i mesh_to_analyze.vtu element_volumes
mesh-doctor -i mesh_to_analyze.vtu non_conformal
mesh-doctor -i mesh_to_analyze.vtu self_intersecting_elements
mesh-doctor -i mesh_to_analyze.vtu supported_elements

The code was designed in a way to allow any new future "check" action to be easily added.

Major changes

  1. While creating this PR, it felt appropriate to rename the folder "checks" by "actions" which is less ambiguous regarding the capabilities of mesh-doctor which can also perform operations on the mesh. The name "all_checks" makes now more sense.

  2. Previously, most of the "check" actions did not have default parameters to use them which is now the case + every one of their argparse keyword is now unique amongst all features. You cannot encounter two times the keyword "tolerance" in the "check" actions.

  3. import logging as now been replaced by the internal logging system configured in geos-utils.

  4. Automatic documentation for mesh-doctor instead of hard-coded command line bash.
    Update documentation.

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.

Perform all checks of mesh-doctor in one command line
1 participant