Skip to content

Commit 3cd8241

Browse files
Merge pull request #241 from SciML/fm/cm
Adding Compat
2 parents 43e8c9a + 44ee7ca commit 3cd8241

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

Project.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ version = "0.10.6"
66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
88
CellularAutomata = "878138dc-5b27-11ea-1a71-cb95d38d6b29"
9+
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
910
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1011
NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd"
1112
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
@@ -25,6 +26,7 @@ RCMLJLinearModelsExt = "MLJLinearModels"
2526
Adapt = "4.1.1"
2627
Aqua = "0.8"
2728
CellularAutomata = "0.0.2"
29+
Compat = "4.16.0"
2830
DifferentialEquations = "7.15.0"
2931
LIBSVM = "0.8"
3032
LinearAlgebra = "1.10"
@@ -50,5 +52,4 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
5052
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
5153

5254
[targets]
53-
test = ["Aqua", "Test", "SafeTestsets", "Random", "DifferentialEquations",
54-
"MLJLinearModels", "LIBSVM", "Statistics"]
55+
test = ["Aqua", "Test", "SafeTestsets", "Random", "DifferentialEquations", "MLJLinearModels", "LIBSVM", "Statistics"]

src/ReservoirComputing.jl

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ module ReservoirComputing
22

33
using Adapt: adapt
44
using CellularAutomata: CellularAutomaton
5+
using Compat: @compat
56
using LinearAlgebra: eigvals, mul!, I
67
using NNlib: fast_act, sigmoid
78
using Random: Random, AbstractRNG
@@ -12,6 +13,8 @@ using WeightInitializers: DeviceAgnostic, PartialFunction, Utils
1213

1314
abstract type AbstractReservoirComputer end
1415

16+
@compat(public, (create_states))
17+
1518
#general
1619
include("states.jl")
1720
include("predict.jl")
@@ -31,12 +34,6 @@ include("esn/esn_predict.jl")
3134
include("reca/reca.jl")
3235
include("reca/reca_input_encodings.jl")
3336

34-
# Julia < 1.9 support
35-
if !isdefined(Base, :get_extension)
36-
include("../ext/RCMLJLinearModelsExt.jl")
37-
include("../ext/RCLIBSVMExt.jl")
38-
end
39-
4037
export NLADefault, NLAT1, NLAT2, NLAT3
4138
export StandardStates, ExtendedStates, PaddedStates, PaddedExtendedStates
4239
export StandardRidge

0 commit comments

Comments
 (0)