Skip to content

Commit f6d15ed

Browse files
committed
Avoid using deprecated indexing
1 parent a141b5d commit f6d15ed

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

Project.toml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
11
name = "ModelTesting"
22
uuid = "726cd793-0c59-4a7a-97d2-1baad301d093"
33
authors = ["Ben Chung <benjamin.chung@juliahub.com> and contributors"]
4-
version = "1.0.6-DEV"
4+
version = "1.0.7-DEV"
55

66
[deps]
77
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
88
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
9+
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
910
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
11+
LowLevelParticleFilters = "d9d29d28-c116-5dba-9239-57a5fe23875b"
1012
ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78"
1113
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
14+
SeeToDee = "1c904df7-48cd-41e7-921b-d889ed9a470c"
1215
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
1316
SymbolicIndexingInterface = "2efcf032-c050-4f8e-a9bb-153293bab1f5"
1417

1518
[compat]
16-
julia = "1.10"
1719
SymbolicIndexingInterface = "^0.3.15"
20+
julia = "1.10"
1821

1922
[extras]
20-
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
21-
ModelingToolkitStandardLibrary = "16a59e39-deab-5bd0-87e4-056b12336739"
2223
DifferentialEquations = "0c46a032-eb83-5123-abaf-570d42b7fbaa"
24+
ModelingToolkitStandardLibrary = "16a59e39-deab-5bd0-87e4-056b12336739"
25+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2326

2427
[targets]
2528
test = ["Test", "ModelingToolkitStandardLibrary", "DifferentialEquations"]

src/test/compare.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function compare(
3535
@assert all(b names(reference) for b in reference_basis) "The reference basis must be a subset of the columns in the reference data"
3636
if new_sol.dense
3737
dat = new_sol(reference[:, :timestamp], idxs=basis)
38-
obs = [[dat[j][i] for j=1:nrow(reference)] for i in eachindex(basis)]
38+
obs = [[dat[i, j] for j=1:nrow(reference)] for i in eachindex(basis)]
3939
ref = collect.(eachcol(reference[:, Not(:timestamp)]))
4040
cmp(new_container, output_names, basis, reference[:, :timestamp], obs, ref)
4141
else

0 commit comments

Comments
 (0)