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 BoundaryDict #915

Merged
merged 6 commits into from
Dec 2, 2024
Merged

Add BoundaryDict #915

merged 6 commits into from
Dec 2, 2024

Conversation

adtzlr
Copy link
Owner

@adtzlr adtzlr commented Dec 1, 2024

with methods to plot, screenshot and imshow.

field = fem.Field(
    fem.RegionHexahedron(fem.Cube(b=(3, 1, 1), n=5)), dim=3
).as_container()
boundaries = fem.BoundaryDict(
    left=fem.Boundary(field[0], fx=0, skip=(0, 0, 1)),
    right=fem.Boundary(field[0], name="my_label", fx=3, skip=(0, 1, 0)),
)
plotter = boundaries.plot()
img = boundaries.screenshot()
ax = boundaries.imshow()

image

 with methods to plot, screenshot and imshow
@adtzlr adtzlr added the enhancement New feature or request label Dec 1, 2024
@adtzlr adtzlr self-assigned this Dec 1, 2024
Copy link

codecov bot commented Dec 1, 2024

Codecov Report

Attention: Patch coverage is 73.80952% with 11 lines in your changes missing coverage. Please review.

Project coverage is 97.17%. Comparing base (6b59077) to head (11d5233).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/felupe/dof/_dict.py 60.71% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #915      +/-   ##
==========================================
- Coverage   97.33%   97.17%   -0.16%     
==========================================
  Files         180      181       +1     
  Lines        6446     6481      +35     
==========================================
+ Hits         6274     6298      +24     
- Misses        172      183      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@adtzlr adtzlr merged commit 6c0afa2 into main Dec 2, 2024
3 of 5 checks passed
@adtzlr adtzlr deleted the add-boundary-dict branch December 2, 2024 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant