|
2 | 2 | # In the future, this call signature will remain here but its source code
|
3 | 3 | # will simply be replaced by an error message.
|
4 | 4 | function basins_of_attraction(grid::Tuple, ds::DynamicalSystem; kwargs...)
|
5 |
| - error(""" |
| 5 | + @warn(""" |
6 | 6 | The function `basins_of_attraction(grid::Tuple, ds::DynamicalSystem; ...)` has
|
7 | 7 | been replaced by the more generic
|
8 | 8 | `basins_of_attraction(mapper::AttractorMapper, grid::Tuple`) which works for
|
9 | 9 | any instance of `AttractorMapper`. The `AttractorMapper` itself requires as
|
10 | 10 | input an kind of dynamical system the user wants, like a `StroboscopicMap` or
|
11 | 11 | `CoupledODEs` or `DeterministicIteratedMap` etc.
|
12 | 12 |
|
13 |
| - Please use that method instead. |
| 13 | + For now, we do the following for you: |
| 14 | + ``` |
| 15 | + mapper = AttractorsViaRecurrences(ds, grid; sparse = false) |
| 16 | + basins_of_attraction(mapper) |
| 17 | + ``` |
| 18 | + and we are completely ignoring any keywords you provided (which could be about the |
| 19 | + differential equation solve, or the metaparameters of the recurrences algorithm). |
| 20 | +
|
| 21 | + We strongly recommend that you study the documentation of Attractors.jl |
| 22 | + and update your code. The only reason we provide this backwards compatibility |
| 23 | + is because our first paper "Effortless estimation of basins of attraction" |
| 24 | + uses this function signature in the script in the paper (which we can't change anymore). |
14 | 25 | """)
|
| 26 | + mapper = AttractorsViaRecurrences(ds, grid; sparse = false) |
| 27 | + return basins_of_attraction(mapper) |
15 | 28 | end
|
16 | 29 |
|
17 | 30 | @deprecate RecurrencesSeededContinuation RecurrencesFindAndMatch
|
|
0 commit comments