Skip to content
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

Added implementations of mesh statistic check and field assignment check #19

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ryar9534
Copy link

@ryar9534 ryar9534 commented May 7, 2024

No description provided.

@ryar9534 ryar9534 self-assigned this May 7, 2024
Comment on lines +21 to +28
scalar_cell_data_names: list
scalar_cell_data_mins: list
scalar_cell_data_maxs: list
tensor_cell_data_names: list
scalar_point_data_names: list
scalar_point_data_mins: list
scalar_point_data_maxs: list
tensor_point_data_names: list
Copy link
Contributor

Choose a reason for hiding this comment

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

List of what ? list[int]?
Use a struct "Toto" {name, min, max} and use this struct as type hint.

scalar_cell: Sequence[Toto]
scalar_point: Sequence[Toto]
...

scalar_point_data_maxs: list
tensor_point_data_names: list
has_point_global_ids: bool
has_cell_global_ids: bool
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't use has_..., check if the previous container is empty instead.




def check( vtk_input_file: str, options: Options ) -> Result:
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe create a broader "fields manipulation" feature instead? Which could handle the global id fields?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants