Skip to content

Commit 6e0eb83

Browse files
committed
git track test data files only
1 parent bd6563e commit 6e0eb83

File tree

6 files changed

+11726
-5
lines changed

6 files changed

+11726
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ using Strategems, Temporal, Indicators
4141
using Dates
4242

4343
# define universe and gather data
44-
assets = ["test/CME_CL1", "test/CME_RB1"]
44+
assets = ["CME_CL1", "CME_RB1"]
4545
universe = Universe(assets)
4646
function datasource(asset::String; save_downloads::Bool=true)::TS
4747
savedata_path = joinpath(dirname(pathof(Strategems)), "..", "data", "$asset.csv")

data/test/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
!CME_CL1.csv
2+
!CME_RB1.csv

data/test/CME_CL1.csv

+8,689
Large diffs are not rendered by default.

data/test/CME_RB1.csv

+3,030
Large diffs are not rendered by default.

examples/mama.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
using Strategems, Temporal, Indicators, Dates, Pkg
22

33
# define universe and gather data
4-
assets = ["test/CME_CL1", "test/CME_RB1"]
4+
assets = ["CME_CL1", "CME_RB1"]
55
universe = Universe(assets)
66
function datasource(asset::String; save_downloads::Bool=true)::TS
7-
savedata_path = joinpath(dirname(pathof(Strategems)), "..", "data", "$asset.csv")
7+
savedata_path = joinpath(dirname(pathof(Strategems)), "..", "data", "test", "$asset.csv")
88
if isfile(savedata_path)
99
return Temporal.tsread(savedata_path)
1010
else
11-
X = quandl(asset)
11+
X = quandl("CHRIS/$asset")
1212
if save_downloads
1313
Temporal.tswrite(X, savedata_path)
1414
end

test/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,5 @@ end
7373
# test example(s)
7474
@testset "Examples" begin
7575
include("$(joinpath(dirname(pathof(Strategems)), "..", "examples", "mama.jl"))")
76-
@test assets == ["test/CME_CL1", "test/CME_RB1"]
76+
@test assets == ["CME_CL1", "CME_RB1"]
7777
end

0 commit comments

Comments
 (0)