-
Notifications
You must be signed in to change notification settings - Fork 114
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
Fix Base.show StructuredMesh #2228
base: main
Are you sure you want to change the base?
Conversation
Review checklistThis checklist is meant to assist creators of PRs (to let them know what reviewers will typically look for) and reviewers (to guide them in a structured review process). Items do not need to be checked explicitly for a PR to be eligible for merging. Purpose and scope
Code quality
Documentation
Testing
Performance
Verification
Created with ❤️ by the Trixi.jl community. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2228 +/- ##
==========================================
- Coverage 96.42% 96.41% -0.01%
==========================================
Files 487 487
Lines 39345 39356 +11
==========================================
+ Hits 37935 37942 +7
- Misses 1410 1414 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Thanks! What does the result look like when a mapping is passed? |
The user defined function is
from This is how it is displayed at the moment. I'm not really a fan of this visualization and if you have any suggestion I may try different options. Before everything was displayed in one single line and because of that incorrectly reported on the terminal. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I'm fine with these changes. It would be nice to get feedback from @sloede as well.
Is there a way for custom mappings to just display the mapping function? Alternatively, I'd prefer to just write something like "custom mapping", since mapping functions might get long and this becomes ugly. But if you're keen on showing it here, I wouldn't be opposed either. |
With the last commit at the moment when a custom mapping or faces are passed to StructuredMesh, the Base.show displays simply that. Unfortunately I couldn't find an easier way to at least distinguish mapping and faces inside the Base.show functoin. I would like to avoid making changes in the |
@sloede Your decision. I am not against the previous (more verbose) version since the current output is already quite a bit... |
When the StructuredMesh was called without any mapping, the information was displayed incorrectly. See below.
Before
After
Same for 1D and 2D.