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

API for file structure #43

Open
pp-mo opened this issue Mar 3, 2022 · 0 comments
Open

API for file structure #43

pp-mo opened this issue Mar 3, 2022 · 0 comments

Comments

@pp-mo
Copy link
Owner

pp-mo commented Mar 3, 2022

Could be useful to provide the Checker.structure_report output as a re-usable data output

  • for general usage from Python code

e.g. (something like)

mesh_struct = Checker(file).structure_report(return_struct=True)  # this is a bit clunky
print('Mesh vars, named : ', mesh_struct.meshes.keys())
print('Connectivities without a mesh : ', mesh_struct.orphan_connectivities.keys())
print('Non-mesh dimensions : ', mesh_struct.nonmesh_dims.keys())
print('Number of non-mesh variables: ', len(mesh_struct.nonmesh_vars))
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

No branches or pull requests

1 participant