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

Use a package extension for GLMakie-based functionality #105

Merged
merged 3 commits into from
Oct 26, 2023

Conversation

ranocha
Copy link
Contributor

@ranocha ranocha commented Sep 13, 2023

I updated the optional plotting code from Requires.jl to package extensions for newer Julia versions. I kept backwards compatibility by still using Requires.jl for old Julia versions. This cuts the loading time using GLMakie, GeoParams for me by something between 0.5 and 1.5 seconds. However, there is still a lot of recompilation left, so this should be investigated in the future.

Caveats:

  • I did not test this - except checking that using GLMakie, GeoParams works on Julia v1.8 and v1.9. I do not know whether the plotting routines are tested in CI (see Add code coverage reports #103) but I will assume that everything is fine if CI passes.
  • There are still some remnants of a previos version using Plots.jl (see Functionality using Plots.jl is broken #104). I did not update them to GLMakie.jl.

Copy link
Member

@albert-de-montserrat albert-de-montserrat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Looks good to me

@ranocha
Copy link
Contributor Author

ranocha commented Sep 21, 2023

Ready to be merged?

@boriskaus
Copy link
Member

Thanks for the changes and apologies for the delay in merging

@boriskaus boriskaus merged commit 5445f87 into JuliaGeodynamics:main Oct 26, 2023
@ranocha ranocha deleted the hr/package_extension branch October 26, 2023 06:35
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.

3 participants