Skip to content

Commit

Permalink
Time series for testing (#101)
Browse files Browse the repository at this point in the history
* fixed tests w.r.t. deprecations in Peaks

* migrate time series for CI/testing into the according repo
  • Loading branch information
hkraemer authored Jan 18, 2022
1 parent b2b9fce commit b5ab857
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
3 changes: 1 addition & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,4 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["DynamicalSystemsBase", "Test",
"Random", "DelimitedFiles", "Peaks", "Downloads"]
test = ["DynamicalSystemsBase", "Test", "Random", "DelimitedFiles", "Peaks", "Downloads"]
14 changes: 3 additions & 11 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,12 @@ using Test
import Downloads

# Download some test timeseries

# Old:
repo = "https://raw.githubusercontent.com/JuliaDynamics/NonlinearDynamicsTextbook/master/exercise_data"
tsfolder = joinpath(@__DIR__, "timeseries")
todownload = ["$n.csv" for n in 1:4]

mkpath(tsfolder)
for a in todownload
Downloads.download(repo*"/"*a, joinpath(tsfolder, a))
end

#New:
todownload1 = ["$n.csv" for n in 1:4]
todownload = ["test_time_series_lorenz_standard_N_10000_multivariate.csv", "test_time_series_roessler_N_10000_multivariate.csv"]
append!(todownload, todownload1)
repo = "https://raw.githubusercontent.com/JuliaDynamics/JuliaDynamics/master/timeseries"
mkpath(tsfolder)
for a in todownload
Downloads.download(repo*"/"*a, joinpath(tsfolder, a))
end
Expand Down

0 comments on commit b5ab857

Please sign in to comment.