You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried doing an example like from this webpage on julia-1.0.5 and got:
julia> C = eirene(c,model="pc",pointlabels=d,maxrad=0.15,verbose=true)
ERROR: MethodError: no method matching setindex_shape_check(::Bool, ::Int64)
Closest candidates are:
setindex_shape_check(::AbstractArray{#s57,1} where #s57, ::Integer) at indices.jl:218
setindex_shape_check(::AbstractArray{#s57,1} where #s57, ::Integer, ::Integer) at indices.jl:221
setindex_shape_check(::AbstractArray{#s57,2} where #s57, ::Integer, ::Integer) at indices.jl:225
...
Stacktrace:
[1] _unsafe_setindex!(::IndexLinear, ::BitArray{1}, ::Bool, ::Array{Int64,1}) at ./multidimensional.jl:649
[2] _setindex! at ./multidimensional.jl:639 [inlined]
[3] setindex! at ./abstractarray.jl:998 [inlined]
[4] #filteredmatrixfromfarfaces#9(::Bool, ::Function, ::Array{Array{Int64,1},1}, ::Array{Array{Int64,1},1}, ::Array{Array{Int64,1},1}, ::Array{Array{Int64,1},1}, ::Int64, ::Array{Int64,1}) at /cfarhomes/ilyak/.julia/packages/Eirene/xh6tb/src/Eirene.jl:661
[5] #filteredmatrixfromfarfaces at ./array.jl:0 [inlined]
[6] #persistf2_core_vr#13(::String, ::Bool, ::Function, ::Array{Array{Int64,1},1}, ::Array{Array{Int64,1},1}, ::Array{Array{Int64,1},1}, ::Array{Array{Int64,1},1}, ::Int64) at /cfarhomes/ilyak/.julia/packages/Eirene/xh6tb/src/Eirene.jl:1131
[7] (::getfield(Eirene, Symbol("#kw##persistf2_core_vr")))(::NamedTuple{(:record, :verbose),Tuple{String,Bool}}, ::typeof(Eirene.persistf2_core_vr), ::Array{Array{Int64,1},1}, ::Array{Array{Int64,1},1}, ::Array{Array{Int64,1},1}, ::Array{Array{Int64,1},1}, ::Int64) at ./none:0
[8] #persistf2!#14(::Int64, ::Bool, ::Bool, ::String, ::Function, ::Dict{String,Any}) at /cfarhomes/ilyak/.julia/packages/Eirene/xh6tb/src/Eirene.jl:1187
[9] #persistf2! at ./none:0 [inlined]
[10] #persistf2vr#15(::String, ::String, ::Float64, ::Float64, ::Float64, ::Array{Any,1}, ::String, ::Bool, ::String, ::Array{String,1}, ::Bool, ::String, ::typeof(Eirene.persistf2vr), ::Array{Float64,2}, ::Int64) at /cfarhomes/ilyak/.julia/packages/Eirene/xh6tb/src/Eirene.jl:1387
[11] #persistf2vr at ./none:0 [inlined]
[12] #eirene#95(::String, ::Int64, ::Float64, ::Float64, ::Float64, ::Array{Any,1}, ::String, ::Bool, ::String, ::String, ::String, ::Array{String,1}, ::Bool, ::typeof(eirene), ::Array{Float64,2}) at /cfarhomes/ilyak/.julia/packages/Eirene/xh6tb/src/Eirene.jl:7214
[13] (::getfield(Eirene, Symbol("#kw##eirene")))(::NamedTuple{(:model, :pointlabels, :maxrad, :verbose),Tuple{String,Array{String,1},Float64,Bool}}, ::typeof(eirene), ::Array{Float64,2}) at ./none:0
[14] top-level scope at none:0
What I tried was:
using CSV
using Eirene
a = CSV.read("/scratch0/ilya/locDownloads/worldcities.csv")
b = a[2:end,3:4]
ds = 8
b = b[1:ds:end,:]
c = latlon2euc(b, model="points")
ezplot_pjs(c)
d = ezlabel(a[2:ds:end,2])
C = eirene(c,model="pc",pointlabels=d,maxrad=0.15,verbose=true)
Is there a particular version of julia you recommend to use? I tried 0.7 after this but was unable to do using Eirene there.
The text was updated successfully, but these errors were encountered:
Hi @ilyakava, thanks for the issue report. The docs on that page are a bit outdated (they remain their principally for illustration). The EXAMPLES.md file has much more up-to-date instructions. Among other things, (1) it's written for Julia 1.3, (2) it uses readdlm to read the relevant file, (3) it uses a built-in command to find the relevant filepath. I just updated this file and ran all the examples, so a first step might be to see if you can get the same results using that procedure. Hope that helps!
@Eetion ok great, I launched it in julia-1.3.1, and just removed the verbose=true option in the last line (with which it crashes), and then everything worked. Thank you!
I tried doing an example like from this webpage on julia-1.0.5 and got:
What I tried was:
Is there a particular version of julia you recommend to use? I tried 0.7 after this but was unable to do
using Eirene
there.The text was updated successfully, but these errors were encountered: