From b5ab85741de673db9f1e05f6f856f42f9f83db79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20Hauke=20Kr=C3=A4mer?= <36292849+hkraemer@users.noreply.github.com> Date: Tue, 18 Jan 2022 17:27:48 +0100 Subject: [PATCH] Time series for testing (#101) * fixed tests w.r.t. deprecations in Peaks * migrate time series for CI/testing into the according repo --- Project.toml | 3 +-- test/runtests.jl | 14 +++----------- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/Project.toml b/Project.toml index 1cd21bd..c01f21c 100644 --- a/Project.toml +++ b/Project.toml @@ -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"] diff --git a/test/runtests.jl b/test/runtests.jl index de54015..b35b368 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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