From ea188f090b382cb163b94af54c47351d3cd3b36c Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Fri, 19 Mar 2021 13:37:14 +0100 Subject: [PATCH] remove deprecated DataFrame usage Closes #165 --- src/io/process.jl | 2 +- test/testBatch.jl | 4 ++-- test/testParallel.jl | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/io/process.jl b/src/io/process.jl index 75e4d490..52a71eb5 100644 --- a/src/io/process.jl +++ b/src/io/process.jl @@ -62,7 +62,7 @@ function getMetaData(meta::Dict{String,String})::DataFrame # create a data frame for the results df = Matrix{String}(undef, pars, length(channel_properties)) df .= defaultValue - df = DataFrame(df) + df = DataFrame(df, :auto) rename!(df, Symbol.(channel_properties)) # collect the data from params diff --git a/test/testBatch.jl b/test/testBatch.jl index 230a5823..b9b2b308 100644 --- a/test/testBatch.jl +++ b/test/testBatch.jl @@ -26,9 +26,9 @@ codes = som.codes @test size(codes) == (100, 10) - dfCodes = DataFrame(codes) + dfCodes = DataFrame(codes, :auto) rename!(dfCodes, Symbol.(antigens)) - dfEmbed = DataFrame(embed) + dfEmbed = DataFrame(embed, :auto) CSV.write(genDataPath * "/batchDfCodes.csv", dfCodes) CSV.write(genDataPath * "/batchWinners.csv", winners) CSV.write(genDataPath * "/batchEmbedded.csv", dfEmbed) diff --git a/test/testParallel.jl b/test/testParallel.jl index 69fc8fc5..0fc3153e 100644 --- a/test/testParallel.jl +++ b/test/testParallel.jl @@ -23,9 +23,9 @@ codes = som.codes @test size(codes) == (100, 10) - dfCodes = DataFrame(codes) + dfCodes = DataFrame(codes, :auto) rename!(dfCodes, Symbol.(antigens)) - dfEmbed = DataFrame(embed) + dfEmbed = DataFrame(embed, :auto) CSV.write(genDataPath * "/parallelDfCodes.csv", dfCodes) CSV.write(genDataPath * "/parallelWinners.csv", winners) CSV.write(genDataPath * "/parallelEmbedded.csv", dfEmbed)