Skip to content

Commit 6110789

Browse files
authored
remove Delimi and Download dependencies (#87)
* remove Delimi and Download dependencies * update cache ci * remove using downloads * add delimited files
1 parent 2bd4a92 commit 6110789

File tree

8 files changed

+24
-299
lines changed

8 files changed

+24
-299
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
with:
3535
version: ${{ matrix.version }}
3636
arch: ${{ matrix.arch }}
37-
- uses: actions/cache@v1
37+
- uses: actions/cache@v4
3838
env:
3939
cache-name: cache-artifacts
4040
with:

Project.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
name = "TransitionsInTimeseries"
22
uuid = "5f5b98ec-1183-43e0-887a-12fdc55c52f7"
33
authors = ["Jan Swierczek-Jereczek <jan.jereczek@gmail.com>", "George Datseris <datseris.george@gmail.com>"]
4-
version = "0.1.4"
4+
version = "0.2.0"
55

66
[deps]
7-
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
8-
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
97
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
108
HypothesisTests = "09f84164-cd44-5f33-b23f-e6b0d136a0d5"
119
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
@@ -24,8 +22,6 @@ Makie = "ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a"
2422
TransitionVisualizations = "Makie"
2523

2624
[compat]
27-
DelimitedFiles = "1"
28-
Downloads = "1"
2925
FFTW = "^1.6"
3026
HypothesisTests = "0.11"
3127
InteractiveUtils = "1"

docs/src/api.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,6 @@ windowmap
122122
windowmap!
123123
```
124124

125-
## Load data
126-
127-
```@docs
128-
load_linear_vs_doublewell()
129-
```
130-
131125
## Visualization
132126

133127
```@docs

docs/src/tutorial.jl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,14 @@ with $x_{l}$ the state of the linear model, $x_{nl}$ the state of the bistable m
3030
=#
3131

3232
using TransitionsInTimeseries, CairoMakie
33+
using Downloads, DelimitedFiles
34+
35+
## load some data
36+
url = "https://raw.githubusercontent.com/JuliaDynamics/JuliaDynamics/master/"*
37+
"timeseries/linear_vs_doublewell.csv"
38+
data = readdlm(Downloads.download(url), ',', Float64, skipstart = 1)
39+
t, x_linear, x_nlinear = view(data, :, 1), view(data, :, 2), view(data, :, 3)
3340

34-
t, x_linear, x_nlinear = load_linear_vs_doublewell()
3541
fig, ax = lines(t, x_linear)
3642
lines!(ax, t, x_nlinear)
3743
ax.title = "raw data"
@@ -194,9 +200,9 @@ The following blocks illustrate how the above extensive example is re-created in
194200

195201
using TransitionsInTimeseries, CairoMakie
196202

197-
t, x_linear, x_nlinear = load_linear_vs_doublewell()
198203

199204
## input timeseries and time
205+
t, x_linear, x_nlinear
200206
input = x_nl_fluct = diff(x_nlinear)
201207
t = t[2:end]
202208

docs/src/tutorial.md

Lines changed: 0 additions & 267 deletions
This file was deleted.

src/TransitionsInTimeseries.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ end TransitionsInTimeseries
99

1010
using LinearAlgebra
1111
using Random
12-
using Downloads
13-
using DelimitedFiles
1412
using InteractiveUtils
1513
using FFTW
1614

@@ -67,7 +65,4 @@ export SlopeChangeConfig, SlopeChangeResults, SlopeChangeSignificance
6765
export isequispaced, equispaced_step
6866
export default_window_width
6967

70-
# load_data.jl
71-
export load_linear_vs_doublewell
72-
7368
end # module TransitionsInTimeseries

src/misc/load_data.jl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +0,0 @@
1-
"""
2-
3-
load_linear_vs_doublewell()
4-
5-
Load prototypical data from a linear and a double-well model to test some indicators.
6-
"""
7-
function load_linear_vs_doublewell()
8-
url = "https://raw.githubusercontent.com/JuliaDynamics/JuliaDynamics/master/"*
9-
"timeseries/linear_vs_doublewell.csv"
10-
tmp = Downloads.download(url)
11-
data = readdlm(tmp, ',', Float64, skipstart = 1)
12-
return view(data, :, 1), view(data, :, 2), view(data, :, 3) # t, xlin, xnlin
13-
end

test/runtests.jl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
using Test
22

3+
"""
4+
5+
load_linear_vs_doublewell()
6+
7+
Load prototypical data from a linear and a double-well model to test some indicators.
8+
"""
9+
function load_linear_vs_doublewell()
10+
url = "https://raw.githubusercontent.com/JuliaDynamics/JuliaDynamics/master/"*
11+
"timeseries/linear_vs_doublewell.csv"
12+
tmp = Downloads.download(url)
13+
data = readdlm(tmp, ',', Float64, skipstart = 1)
14+
return view(data, :, 1), view(data, :, 2), view(data, :, 3) # t, xlin, xnlin
15+
end
16+
317
defaultname(file) = uppercasefirst(replace(splitext(basename(file))[1], '_' => ' '))
418
testfile(file, testname=defaultname(file)) = @testset "$testname" begin; include(file); end
519

0 commit comments

Comments
 (0)