Skip to content

Commit

Permalink
remove deprecated DataFrame usage
Browse files Browse the repository at this point in the history
Closes #165
  • Loading branch information
exaexa committed Mar 19, 2021
1 parent d6ed20b commit ea188f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/io/process.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/testBatch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions test/testParallel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ea188f0

Please sign in to comment.