Skip to content

Commit

Permalink
make _create_isosurf_plot_data also when loaded via an extension (C…
Browse files Browse the repository at this point in the history
…rystallinePyPlotExt) and not just Requires
  • Loading branch information
thchr committed Sep 5, 2024
1 parent 49b4835 commit 9424e64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/CrystallinePyPlotExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ else
end
using Crystalline
using Crystalline: AbstractFourierLattice, AbstractVec, calcfouriergridded
# extend rather than define so it can be called externally via `Crystalline.(...)`
import Crystalline: _create_isosurf_plot_data

using Meshing: MarchingCubes, isosurface
using Statistics: quantile
Expand Down
3 changes: 3 additions & 0 deletions src/Crystalline.jl
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ export position, inv, isapprox
if !isdefined(Base, :get_extension)
using Requires # load extensions via Requires.jl on Julia versions <v1.9
end
# define functions we want to extend and have accessible via `Crystalline.(...)` if an
# extension is loaded
function _create_isosurf_plot_data end # implemented on CrystallinePyPlotExt load

## __init__
# - open .jld2 data files, so we don't need to keep opening/closing them
Expand Down

2 comments on commit 9424e64

@thchr
Copy link
Owner Author

@thchr thchr commented on 9424e64 Sep 5, 2024

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/114599

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.5.4 -m "<description of version>" 9424e6489d53e954b0b4182555de61c683f84de2
git push origin v0.5.4

Please sign in to comment.