Skip to content

Commit 8cdc5e5

Browse files
committed
add lock to combine_daily_rvs
1 parent 5c9c82b commit 8cdc5e5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/combine_daily_rvs_1.0.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ files1 = glob([r"\d{2}",args["input_filename"]],args["input_path"])
6262
files2 = glob([r"\d{2}",r"\d{2}",args["input_filename"]],args["input_path"])
6363
files3 = glob([r"\d{4}",r"\d{2}",r"\d{2}",args["input_filename"]],args["input_path"])
6464
files = vcat(files1,files2,files3)
65-
@assert length(files) >= 1
65+
#@assert length(files) >= 1
66+
if !(length(files) >= 1)
67+
@warn "No files found."
68+
exit()
69+
end
6670

6771
if !isnothing(args["exclude_filename"]) && isfile(args["exclude_filename"]) && (filesize(args["exclude_filename"])>0)
6872
@info "# Reading days to exclude."

0 commit comments

Comments
 (0)