From ce7d1294093c94e686c6dc0282c4efd68500ec33 Mon Sep 17 00:00:00 2001 From: Iago-lito Date: Tue, 20 Feb 2024 14:37:08 +0100 Subject: [PATCH] Re-expose Internals `extinction_callback`. --- src/methods/main.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/methods/main.jl b/src/methods/main.jl index d0699d2cf..278fd0289 100644 --- a/src/methods/main.jl +++ b/src/methods/main.jl @@ -5,3 +5,8 @@ simulate(model, u0; kwargs...) = Internals.simulate(model, u0; kwargs...) @method simulate depends(FunctionalResponse, ProducerGrowth, Metabolism, Mortality) export simulate + +# Re-expose from internals so it works with the new API. +extinction_callback(m, thr; verbose=false) = Internals.ExtinctionCallback(thr, m, verbose) +@method extinction_callback depends(FunctionalResponse, ProducerGrowth, Metabolism, Mortality) +export extinction_callback