-
-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #813 from AayushSabharwal/as/rm-tabletraits
refactor: remove Tables.jl impl, fall back to RecursiveArrayTools
- Loading branch information
Showing
6 changed files
with
27 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using ModelingToolkit, OrdinaryDiffEq, Tables, Test | ||
using ModelingToolkit: t_nounits as t, D_nounits as D | ||
|
||
@variables x(t) y(t) | ||
@parameters p q | ||
@mtkbuild sys = ODESystem( | ||
[D(x) ~ p * x + q * y, 0 ~ y^2 - 2x * y - 4], t, guesses = [y => 1.0]) | ||
prob = ODEProblem(sys, [x => 1.0], (0.0, 5.0), [p => 1.0, q => 2.0]) | ||
sol = solve(prob, Rodas5P()) | ||
|
||
@test sort(collect(Tables.columnnames(Tables.columns(sol)))) == | ||
[:timestamp, Symbol("x(t)"), Symbol("y(t)")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters