Avoid print warning for empty datasets; Added corresponding test
This commit is contained in:
parent
4830e0c028
commit
da52fd03d2
@ -618,7 +618,7 @@ function driver(args...; flag3d=false)
|
||||
AllArraysAreNotEmpty = true
|
||||
for i in 1:length(data)
|
||||
if (typeof(data[i]) <: AbstractArray) && (length(data[i]) == 0)
|
||||
@warn "Input array is empty"
|
||||
#@warn "Input array is empty"
|
||||
AllArraysAreNotEmpty = false
|
||||
break
|
||||
end
|
||||
|
||||
@ -79,6 +79,12 @@ pal = palette(:deepsea)
|
||||
ls = linestyles(:deepsea)
|
||||
@test ls == "set style line 1 lt 1 lc rgb '#2B004D\nset style line 2 lt 1 lc rgb '#4E0F99\nset style line 3 lt 1 lc rgb '#3C54D4\nset style line 4 lt 1 lc rgb '#48A9F8\nset style line 5 lt 1 lc rgb '#C5ECFF"
|
||||
|
||||
#-----------------------------------------------------------------
|
||||
# Test wth empty dataset
|
||||
@gp Float64[]
|
||||
@gsp Float64[]
|
||||
|
||||
|
||||
#-----------------------------------------------------------------
|
||||
x = collect(1.:100);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user