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

Add new function cashocs.io.extract_mesh_from_xdmf and corresponding CLI #277

Merged
merged 3 commits into from
Aug 3, 2023

Conversation

sblauth
Copy link
Owner

@sblauth sblauth commented Aug 3, 2023

This PR adds a new function cashocs.io.extract_mesh_from_xdmf which can be used to extract a mesh out of an XDMF state file (such as the ones written by cashocs).
Additionally, this also has the command line interface cashocs-extract_mesh.

Closes #268

This can be used either as a function cashocs.io.extract_mesh_from_xdmf
or via the CLI cashocs-extract_mesh.
@sblauth sblauth added the development Development-related matters label Aug 3, 2023
@sblauth sblauth added this to the v2.1 milestone Aug 3, 2023
@sblauth sblauth self-assigned this Aug 3, 2023
@sblauth sblauth enabled auto-merge August 3, 2023 20:47
@codecov
Copy link

codecov bot commented Aug 3, 2023

Codecov Report

Merging #277 (0683ef9) into main (8f3653a) will increase coverage by 0.35%.
The diff coverage is 73.08%.

@@            Coverage Diff             @@
##             main     #277      +/-   ##
==========================================
+ Coverage   92.59%   92.93%   +0.35%     
==========================================
  Files          83       84       +1     
  Lines        6460     6507      +47     
==========================================
+ Hits         5981     6047      +66     
+ Misses        479      460      -19     
Files Changed Coverage Δ
cashocs/_cli/_extract_mesh.py 33.33% <33.33%> (ø)
cashocs/_cli/__init__.py 100.00% <100.00%> (ø)
cashocs/_cli/_convert.py 91.11% <100.00%> (+2.88%) ⬆️
cashocs/_utils/__init__.py 100.00% <100.00%> (ø)
cashocs/_utils/helpers.py 98.15% <100.00%> (+0.07%) ⬆️
cashocs/io/__init__.py 100.00% <100.00%> (ø)
cashocs/io/mesh.py 94.38% <100.00%> (+19.38%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sblauth sblauth merged commit eca5685 into main Aug 3, 2023
15 of 22 checks passed
@sblauth sblauth deleted the development/mesh_cli branch August 3, 2023 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development Development-related matters
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Development] Expose the io/mesh functions to the CLI
1 participant