Skip to content

Commit 5a22f27

Browse files
Merge pull request #591 from ChrisRackauckas-Claude/fix-ci-test-failures
Fix CI test failures and disable DataDrivenSR
2 parents 330ae5e + 62412f4 commit 5a22f27

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/DataDrivenDMD/test/linear_autonomous.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ end
108108
sol_ = solve(prob, Tsit5(), saveat = 0.01)
109109

110110
# True Rank is 3
111-
X = Q * sol_[:, :] + 1.0e-3 * randn(rng, 20, 1001)
112-
DX = Q * sol_(sol_.t, Val{1})[:, :] + 1.0e-3 * randn(rng, 20, 1001)
111+
X = Q * Array(sol_) + 1.0e-3 * randn(rng, 20, 1001)
112+
DX = Q * Array(sol_(sol_.t, Val{1})) + 1.0e-3 * randn(rng, 20, 1001)
113113
ddprob = ContinuousDataDrivenProblem(X, sol_.t, DX = DX)
114114

115115
for alg in [TOTALDMD(3, DMDPINV()); TOTALDMD(0.01, DMDSVD(3))]

lib/DataDrivenSparse/test/cartpole.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ cart_pole_prob = ODEProblem(cart_pole, u0, tspan)
2121
solution = solve(cart_pole_prob, Tsit5(), saveat = dt)
2222

2323
# Create the differential data
24-
X = solution[:, :]
24+
X = Array(solution)
2525
DX = similar(X)
2626
for (i, xi) in enumerate(eachcol(X))
2727
DX[:, i] = cart_pole(xi, [], solution.t[i])

lib/DataDrivenSparse/test/pendulum.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ sol = solve(prob, Tsit5(), saveat = dt)
4444
end
4545

4646
@testset "Noise" begin
47-
X = sol[:, :]
47+
X = Array(sol)
4848
t = sol.t
4949

5050
rng = StableRNG(21)

0 commit comments

Comments
 (0)