I have code that was working just a week ago, and now when I get to the line with dropmissing!(df), I get this:
MethodError: Cannot `convert` an object of type Missing to an object of type Float64
Closest candidates are:
convert(::Type{T}, ::T) where T<:Number at number.jl:6
convert(::Type{T}, ::Number) where T<:Number at number.jl:7
convert(::Type{T}, ::Base.TwicePrecision) where T<:Number at twiceprecision.jl:250
...
Stacktrace:
[1] setindex!(::Array{Float64,1}, ::Missing, ::Int64) at ./array.jl:826
[2] copyto!(::Array{Float64,1}, ::SentinelArrays.SentinelArray{Float64,1,Float64,Missing,SentinelArrays.ChainedVector{Float64,Array{Float64,1}}}) at ./multidimensional.jl:962
[3] AbstractArray at ./array.jl:542 [inlined]
[4] AbstractArray at ./boot.jl:432 [inlined]
[5] convert at ./abstractarray.jl:15 [inlined]
[6] disallowmissing(::SentinelArrays.SentinelArray{Float64,1,Float64,Missing,SentinelArrays.ChainedVector{Float64,Array{Float64,1}}}) at /home/efurtak/.julia/packages/Missings/notdc/src/Missings.jl:50
[7] disallowmissing!(::DataFrame, ::Int64; error::Bool) at /home/efurtak/.julia/packages/DataFrames/4ov0U/src/dataframe/dataframe.jl:1001
[8] #disallowmissing!#177 at /home/efurtak/.julia/packages/DataFrames/4ov0U/src/dataframe/dataframe.jl:1009 [inlined]
[9] #disallowmissing!#180 at /home/efurtak/.julia/packages/DataFrames/4ov0U/src/dataframe/dataframe.jl:1025 [inlined]
[10] disallowmissing! at /home/efurtak/.julia/packages/DataFrames/4ov0U/src/dataframe/dataframe.jl:1025 [inlined]
[11] dropmissing!(::DataFrame, ::Colon; disallowmissing::Bool) at /home/efurtak/.julia/packages/DataFrames/4ov0U/src/abstractdataframe/abstractdataframe.jl:877
[12] dropmissing! at /home/efurtak/.julia/packages/DataFrames/4ov0U/src/abstractdataframe/abstractdataframe.jl:876 [inlined] (repeats 2 times)
[13] top-level scope at /run/media/efurtak/spindisk/oceano/oceano_met/code_explore_CDF_data/read_scrub_data.jl:24
julia>
signal (11): Segmentation fault
in expression starting at none:0
jl_is_concrete_type at /buildworker/worker/package_linux64/build/src/julia.h:1230 [inlined]
jl_apply_tuple_type_v_ at /buildworker/worker/package_linux64/build/src/jltypes.c:1351 [inlined]
jl_apply_tuple_type_v at /buildworker/worker/package_linux64/build/src/jltypes.c:1364
arg_type_tuple at /buildworker/worker/package_linux64/build/src/gf.c:1772
jl_lookup_generic_ at /buildworker/worker/package_linux64/build/src/gf.c:2288 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2319
getmaxwidths at /home/efurtak/.julia/packages/DataFrames/4ov0U/src/abstractdataframe/show.jl:175
unknown function (ip: 0x7f38731fbddd)
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2145 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2323
#_show#444 at /home/efurtak/.julia/packages/DataFrames/4ov0U/src/abstractdataframe/show.jl:588
_show##kw at /home/efurtak/.julia/packages/DataFrames/4ov0U/src/abstractdataframe/show.jl:564 [inlined]
#show#445 at /home/efurtak/.julia/packages/DataFrames/4ov0U/src/abstractdataframe/show.jl:665 [inlined]
show##kw at /home/efurtak/.julia/packages/DataFrames/4ov0U/src/abstractdataframe/show.jl:665 [inlined]
#show#460 at /home/efurtak/.julia/packages/DataFrames/4ov0U/src/abstractdataframe/io.jl:56
unknown function (ip: 0x7f38731f8ca1)
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2145 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2323
show at /home/efurtak/.julia/packages/DataFrames/4ov0U/src/abstractdataframe/io.jl:56
#85 at /home/efurtak/.julia/packages/Atom/ipSjf/src/display/base.jl:56
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2145 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2323
#sprint#338 at ./strings/io.jl:105
sprint at ./strings/io.jl:101 [inlined]
macro expansion at /home/efurtak/.julia/packages/Atom/ipSjf/src/display/base.jl:56 [inlined]
render at /home/efurtak/.julia/packages/Media/ItEPc/src/system.jl:173
render′ at /home/efurtak/.julia/packages/Atom/ipSjf/src/display/errors.jl:119
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2145 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2323
wsitem at /home/efurtak/.julia/packages/Atom/ipSjf/src/workspace.jl:22
wsitem at /home/efurtak/.julia/packages/Atom/ipSjf/src/workspace.jl:19
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2145 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2323
#251 at /home/efurtak/.julia/packages/Atom/ipSjf/src/workspace.jl:8
iterate at ./generator.jl:47 [inlined]
collect_to! at ./array.jl:711 [inlined]
collect_to_with_first! at ./array.jl:689
_collect at ./array.jl:683
collect_similar at ./array.jl:607 [inlined]
map at ./abstractarray.jl:2072 [inlined]
workspace at /home/efurtak/.julia/packages/Atom/ipSjf/src/workspace.jl:8
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2145 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2323
handlemsg at /home/efurtak/.julia/packages/Atom/ipSjf/src/comm.jl:169
unknown function (ip: 0x7f388e5983c7)
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2145 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2323
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1700 [inlined]
do_apply at /buildworker/worker/package_linux64/build/src/builtins.c:643
#31 at ./task.jl:358
unknown function (ip: 0x7f388e566add)
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2145 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2323
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1700 [inlined]
start_task at /buildworker/worker/package_linux64/build/src/task.c:687
unknown function (ip: (nil))
Allocations: 218692717 (Pool: 218637202; Big: 55515); GC: 167
I didn’t change any code or data, does anyone have any ideas what is causing this issue?
Thanks