alanderos91 / BioSimulator.jl

A stochastic simulation framework in Julia.
https://alanderos91.github.io/BioSimulator.jl/stable/
Other
47 stars 7 forks source link

Update to Julia 1.2.0 #26

Closed oliviaAB closed 4 years ago

oliviaAB commented 4 years ago

Hi, I started playing with Julia 1.2.0 and BioSimulator, I just wanted to point out the change in syntax required with this newer version of Julia:

In src/output/summary.jl: lines 201, 204, and 208,

df[:col_index] = my_values

has to be replaced by

df[!, :col_index] = my_values

The warning being:

┌ Warning: `setindex!(df::DataFrame, v::AbstractVector, col_ind::ColumnIndex)` is deprecated, use `begin
│     df[!, col_ind] = v
│     df
│ end` instead.
│   caller = DataFrames.DataFrame(::BioSimulator.SimulationSummary{Array{BioSimulator.RegularPath{Float64,Int64},1}}) at summary.jl:201, 204, 208
└ @ BioSimulator ~/.julia/packages/BioSimulator/5fAh0/src/output/summary.jl:201, 204, 208

Hope this helps!

alanderos91 commented 4 years ago

Fixed by #27 but be warned that the latest version may break your scripts.