Use binary files to send Vararg{AbstractVector, N}
This commit is contained in:
parent
29cdaaa8e5
commit
ca17be8db3
@ -632,6 +632,7 @@ function DatasetBin(cols::Vararg{AbstractVector, N}) where N
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
close(io)
|
close(io)
|
||||||
|
source *= " using " * join(1:N, ":") * " "
|
||||||
return DatasetBin(Val(:inner), path, source)
|
return DatasetBin(Val(:inner), path, source)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -685,6 +686,8 @@ function useBinaryMethod(args...)
|
|||||||
elseif options.preferred_format == :auto
|
elseif options.preferred_format == :auto
|
||||||
if (length(args) == 1) && isa(args[1], AbstractMatrix)
|
if (length(args) == 1) && isa(args[1], AbstractMatrix)
|
||||||
binary = true
|
binary = true
|
||||||
|
elseif length(args[1]) > 10^4
|
||||||
|
binary = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return binary
|
return binary
|
||||||
@ -960,7 +963,7 @@ function parseArguments(_args...)
|
|||||||
elseif isa(arg, Real) # ==> a dataset column with only one row
|
elseif isa(arg, Real) # ==> a dataset column with only one row
|
||||||
args[pos] = [arg]
|
args[pos] = [arg]
|
||||||
elseif hasmethod(recipe, tuple(typeof(arg))) # ==> implicit recipe
|
elseif hasmethod(recipe, tuple(typeof(arg))) # ==> implicit recipe
|
||||||
@info which(recipe, tuple(typeof(arg))) # debug
|
# @info which(recipe, tuple(typeof(arg))) # debug
|
||||||
deleteat!(args, pos)
|
deleteat!(args, pos)
|
||||||
insert!(args, pos, recipe(arg))
|
insert!(args, pos, recipe(arg))
|
||||||
continue
|
continue
|
||||||
@ -1088,7 +1091,7 @@ function driver(_args...; is3d=false)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
elems = elems[sortperm(getfield.(elems, :mid))]
|
elems = elems[sortperm(getfield.(elems, :mid))]
|
||||||
display(elems) # debug
|
# display(elems) # debug
|
||||||
|
|
||||||
# Set dataset names and send them to gnuplot process
|
# Set dataset names and send them to gnuplot process
|
||||||
for elem in elems
|
for elem in elems
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user