henry2004y / TestParticle.jl

Test particle tracing in electromagnetic field
https://henry2004y.github.io/TestParticle.jl/dev/
MIT License
14 stars 3 forks source link

Make TestParticleMakie as an extension after Julia 1.9 #88

Closed henry2004y closed 8 months ago

henry2004y commented 9 months ago

With the new capability of package extension introduced in Julia 1.9, we no longer need to maintain a separate package for plotting via Makie. See an example of the extension at Mesh.jl

TCLiuu commented 9 months ago

I've already come across some discussions about this exciting feature. I'll give it a try later this month.

henry2004y commented 9 months ago

It's actually pretty straightforward given that we have a separate glue package now.

TCLiuu commented 8 months ago

I've read the documentation on this feature, and it appears to be useful and easy. However, I have a new question: should we include Makie in [weakdeps] but not in [deps]? Makie is a heavy dependency, so do we need to install it when performing calculations only?

henry2004y commented 8 months ago

See an example in Meshes.jl. It should be in weakdeps, which I guess is not automatically installed if the plotting functionalities are not called.