-
Notifications
You must be signed in to change notification settings - Fork 9
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 Makie package extension #51
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #51 +/- ##
==========================================
- Coverage 98.85% 98.80% -0.06%
==========================================
Files 20 21 +1
Lines 1838 1840 +2
==========================================
+ Hits 1817 1818 +1
- Misses 21 22 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Co-authored-by: Hendrik Ranocha <[email protected]>
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.
A small suggestion, but otherwise LGTM
Co-authored-by: Michael Schlottke-Lakemper <[email protected]>
Create a package extension for the plotting functionality implemented herein that requires Makie.jl to be loaded. To remain backwards compatible with Julia v1.6, I've kept the current approach that is based on Requires.jl.
When a Julia version above 1.9.1 is used, the package extension is loaded instead of relying on Requires.jl. The only user-visible difference is that we define "empty" functions for
plotProject!
andupdatePlot!
in HOHQMesh.jl that are then exported, since the package extension cannot export anything itself.I tested it locally using Julia versions 1.10.0 and 1.8.5 and everything passed.
I was not sure where the docstrings for the functions should live. Right now they are on the actual functions contained in the package extension but they might need moved.I had to place the docstings above the functions insrc/Viz/visualization.jl
for them to show up properly in the docs. So, I added a note in the docstrings pointing to where the full function is actually implemented.