From 9424e6489d53e954b0b4182555de61c683f84de2 Mon Sep 17 00:00:00 2001 From: Thomas Christensen Date: Thu, 5 Sep 2024 15:30:58 +0200 Subject: [PATCH] make `_create_isosurf_plot_data` also when loaded via an extension (CrystallinePyPlotExt) and not just Requires --- ext/CrystallinePyPlotExt.jl | 2 ++ src/Crystalline.jl | 3 +++ 2 files changed, 5 insertions(+) diff --git a/ext/CrystallinePyPlotExt.jl b/ext/CrystallinePyPlotExt.jl index 64c0f3c0..c08694c9 100644 --- a/ext/CrystallinePyPlotExt.jl +++ b/ext/CrystallinePyPlotExt.jl @@ -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 diff --git a/src/Crystalline.jl b/src/Crystalline.jl index e94ced90..8d3595e2 100644 --- a/src/Crystalline.jl +++ b/src/Crystalline.jl @@ -175,6 +175,9 @@ export position, inv, isapprox if !isdefined(Base, :get_extension) using Requires # load extensions via Requires.jl on Julia versions