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 Makie package extension #51

Merged
merged 8 commits into from
Apr 10, 2024
Merged

Add Makie package extension #51

merged 8 commits into from
Apr 10, 2024

Conversation

andrewwinters5000
Copy link
Member

@andrewwinters5000 andrewwinters5000 commented Apr 5, 2024

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! and updatePlot! 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 in src/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.

Copy link

codecov bot commented Apr 5, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 98.80%. Comparing base (e05584a) to head (c962b9b).

Files Patch % Lines
src/HOHQMesh.jl 50.00% 1 Missing ⚠️
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     
Flag Coverage Δ
unittests 98.80% <66.66%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@coveralls
Copy link

coveralls commented Apr 5, 2024

Coverage Status

coverage: 98.804% (-0.05%) from 98.857%
when pulling c962b9b on makie-pkg-extension
into e05584a on main.

src/Viz/visualization.jl Outdated Show resolved Hide resolved
src/Viz/visualization.jl Outdated Show resolved Hide resolved
test/test_visualization.jl Outdated Show resolved Hide resolved
Copy link
Member

@sloede sloede left a 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

src/Viz/visualization.jl Show resolved Hide resolved
src/Viz/visualization.jl Show resolved Hide resolved
Co-authored-by: Michael Schlottke-Lakemper <[email protected]>
@andrewwinters5000 andrewwinters5000 requested a review from sloede April 9, 2024 07:51
@andrewwinters5000 andrewwinters5000 merged commit 1fb6471 into main Apr 10, 2024
8 of 10 checks passed
@andrewwinters5000 andrewwinters5000 deleted the makie-pkg-extension branch April 10, 2024 04:20
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

Successfully merging this pull request may close these issues.

4 participants