Skip to content

Commit

Permalink
info() -> @info, warn() -> @warn
Browse files Browse the repository at this point in the history
  • Loading branch information
alyst committed Aug 23, 2018
1 parent 9b8837c commit 16d131e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/download.jl
Expand Up @@ -31,12 +31,12 @@ end
function datafile(depname, filename, dir = nothing; recurse = true, kw...)
path = joinpath(datadir(depname, dir; kw...), filename)
if !isfile(path)
warn("The file \"$path\" does not exist, even though the dataset-specific folder does. This is an unusual situation that may have been caused by a manual creation of an empty folder, or manual deletion of the given file \"$filename\".")
@warn "The file \"$path\" does not exist, even though the dataset-specific folder does. This is an unusual situation that may have been caused by a manual creation of an empty folder, or manual deletion of the given file \"$filename\"."
if dir == nothing
info("Retriggering DataDeps.jl for \"$depname\"")
@info "Retriggering DataDeps.jl for \"$depname\""
download_dep(depname; kw...)
else
info("Retriggering DataDeps.jl for \"$depname\" to \"$dir\".")
@info "Retriggering DataDeps.jl for \"$depname\" to \"$dir\"."
download_dep(depname, dir; kw...)
end
if recurse
Expand Down
2 changes: 1 addition & 1 deletion test/tst_cifar10.jl
Expand Up @@ -58,7 +58,7 @@ end
# NOT executed on CI. only executed locally.
# This involves dataset download etc.
if parse(Bool, get(ENV, "CI", "false"))
info("CI detected: skipping dataset download")
@info "CI detected: skipping dataset download"
else
data_dir = withenv("DATADEPS_ALWAY_ACCEPT"=>"true") do
datadep"CIFAR10"
Expand Down
2 changes: 1 addition & 1 deletion test/tst_cifar100.jl
Expand Up @@ -29,7 +29,7 @@ end
# NOT executed on CI. only executed locally.
# This involves dataset download etc.
if parse(Bool, get(ENV, "CI", "false"))
info("CI detected: skipping dataset download")
@info "CI detected: skipping dataset download"
else
data_dir = withenv("DATADEPS_ALWAY_ACCEPT"=>"true") do
datadep"CIFAR100"
Expand Down
2 changes: 1 addition & 1 deletion test/tst_fashion_mnist.jl
Expand Up @@ -28,7 +28,7 @@ end
# NOT executed on CI. only executed locally.
# This involves dataset download etc.
if parse(Bool, get(ENV, "CI", "false"))
info("CI detected: skipping dataset download")
@info "CI detected: skipping dataset download"
else
data_dir = withenv("DATADEPS_ALWAY_ACCEPT"=>"true") do
datadep"FashionMNIST"
Expand Down
2 changes: 1 addition & 1 deletion test/tst_mnist.jl
Expand Up @@ -51,7 +51,7 @@ end
# NOT executed on CI. only executed locally.
# This involves dataset download etc.
if parse(Bool, get(ENV, "CI", "false"))
info("CI detected: skipping dataset download")
@info "CI detected: skipping dataset download"
else
data_dir = withenv("DATADEPS_ALWAY_ACCEPT"=>"true") do
datadep"MNIST"
Expand Down
2 changes: 1 addition & 1 deletion test/tst_svhn2.jl
Expand Up @@ -53,7 +53,7 @@ end
# NOT executed on CI. only executed locally.
# This involves dataset download etc.
if parse(Bool, get(ENV, "CI", "false"))
info("CI detected: skipping dataset download")
@info "CI detected: skipping dataset download"
else
data_dir = withenv("DATADEPS_ALWAY_ACCEPT"=>"true") do
datadep"SVHN2"
Expand Down

0 comments on commit 16d131e

Please sign in to comment.