You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@assertall(_symbolic_subset.((measured_reference,), sols_measured)) "Test solutions must expose a superset of the reference's variables for comparison"
33
-
@assertlength(measured_reference) >0"Compared solutions must share at least one measured variable"
34
-
measured = measured_reference
35
-
36
-
if knots != reference.t &&!reference.dense
37
-
@assert reference.dense "Interpolated evaluation points require a dense reference solution"
@assertall(_symbolic_subset.((measured_reference,), sols_measured)) "Test solutions must expose a superset of the reference's variables for comparison"
71
+
sol_measured=measured_values(containers)
72
+
@assert_symbolic_subset(measured_reference, sol_measured) "Test solutions must expose a superset of the reference's variables for comparison"
87
73
@assertlength(measured_reference) >0"Compared solutions must share at least one measured variable"
88
74
measured = measured_reference
89
75
90
76
timebounds(sol) = (sol.t[1], sol.t[end])
91
77
@assert reference.dense "Dense (integrated) comparision requires a dense reference solution"
92
-
for (test_name, test_sol) in sols
93
-
@assert test_sol.dense "Test solution $(test_name) must be dense in order to use continous-time comparison"
94
-
@asserttimebounds(test_sol) ==timebounds(reference) "Test solution $(test_name) has time range $(timebounds(test_sol)) which differs from the reference $(timebounds(reference))"
95
-
end
96
-
78
+
@assert sol.dense "Test solution must be dense in order to use continous-time comparison"
79
+
@asserttimebounds(sol) ==timebounds(reference) "Test solution has time range $(timebounds(sol)) which differs from the reference $(timebounds(reference))"
@assertlength(measured_reference) >0"At least one variable must be marked as measured"
19
-
measured = measured_reference
20
-
21
-
measured_names =string.(measured)
22
-
if!(all(name->name ∈names(data), measured_names))
23
-
error("Measured data points must exist in both model solution & test data; measured parameters in solution: $(measured_names) vs. in data $(names(data))")
24
-
end
25
-
26
-
data_matrix =collect.(eachrow(data[!, string.(measured)])) # lame and slow
0 commit comments