Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RasData error after updating both Circuitscape and Omniscape #128

Closed
luciano-atzeni opened this issue Mar 24, 2023 · 2 comments
Closed

RasData error after updating both Circuitscape and Omniscape #128

luciano-atzeni opened this issue Mar 24, 2023 · 2 comments

Comments

@luciano-atzeni
Copy link

luciano-atzeni commented Mar 24, 2023

I am encountering the following issue:
nested task error: UndefVarError: RasData not defined

I read this problem was reported by an old thread, and tried to fix it by updating both packages, without success. I share the full output below. I'd like to understand whether this is an issue with the packages or my input files. Thanks a lot for any help.

Starting up Omniscape. Using 12 workers in parallel. Using double precision...
Solving targets
[ Info: Solving target 6076 of 72900
[ Info: Solving target 60751 of 72900
[ Info: Solving target 42526 of 72900
[ Info: Solving target 12151 of 72900
[ Info: Solving target 30376 of 72900
[ Info: Solving target 36451 of 72900
[ Info: Solving target 54676 of 72900
[ Info: Solving target 24301 of 72900
[ Info: Solving target 1 of 72900
[ Info: Solving target 48601 of 72900
[ Info: Solving target 66826 of 72900
[ Info: Solving target 18226 of 72900
ERROR: TaskFailedException
Stacktrace:
[1] wait
@ .\task.jl:345 [inlined]
[2] threading_run(fun::Omniscape.var"#90#threadsfor_fun#9"{Omniscape.var"#90#threadsfor_fun#8#10"{Int64, Circuitscape.OutputFlags, Int64, Matrix{Float64}, Dict{String, String}, Float64, Float64, Float64, Float64, String, String, Bool, Bool, Bool, Bool, DataType, Dict{String, Int64}, UnitRange{Int64}}}, static::Bool)
@ Base.Threads .\threadingconstructs.jl:38
[3] macro expansion
@ .\threadingconstructs.jl:89 [inlined]
[4] run_omniscape(path::String)
@ Omniscape C:\Users\biol0061.julia\packages\Omniscape\TtEWy\src\run_omniscape.jl:276
[5] top-level scope
@ REPL[37]:1

nested task error: UndefVarError: RasData not defined
Stacktrace:
 [1] calculate_current(resistance::Matrix{Float64}, source::Matrix{Float64}, ground::Matrix{Float64}, flags::Circuitscape.RasterFlags, cs_cfg::Dict{String, String}, T::DataType)
   @ Omniscape C:\Users\biol0061\.julia\packages\Omniscape\TtEWy\src\functions.jl:346
 [2] solve_target!(i::Int64, n_targets::Int64, int_arguments::Dict{String, Int64}, targets::Matrix{Float64}, sources_raw::Matrix{Float64}, resistance_raw::Matrix{Float64}, cs_cfg::Dict{String, String}, o::Circuitscape.OutputFlags, calc_flow_potential::Bool, correct_artifacts::Bool, conditional::Bool, condition1_present::Matrix{Float64}, condition1_future::Matrix{Float64}, condition2_present::Matrix{Float64}, condition2_future::Matrix{Float64}, comparison1::String, comparison2::String, condition1_lower::Float64, condition1_upper::Float64, condition2_lower::Float64, condition2_upper::Float64, correction_array::Matrix{Float64}, cum_currmap::Array{Float64, 3}, fp_cum_currmap::Array{Float64, 3}, precision::DataType, resistance_file_is_conductance::Bool)
   @ Omniscape C:\Users\biol0061\.julia\packages\Omniscape\TtEWy\src\functions.jl:513
 [3] macro expansion
   @ C:\Users\biol0061\.julia\packages\Omniscape\TtEWy\src\run_omniscape.jl:281 [inlined]
 [4] (::Omniscape.var"#90#threadsfor_fun#9"{Omniscape.var"#90#threadsfor_fun#8#10"{Int64, Circuitscape.OutputFlags, Int64, Matrix{Float64}, Dict{String, String}, Float64, Float64, Float64, Float64, String, String, Bool, Bool, Bool, Bool, DataType, Dict{String, Int64}, UnitRange{Int64}}})(tid::Int64; onethread::Bool)
   @ Omniscape .\threadingconstructs.jl:84
 [5] #90#threadsfor_fun
   @ .\threadingconstructs.jl:51 [inlined]
 [6] (::Base.Threads.var"#1#2"{Omniscape.var"#90#threadsfor_fun#9"{Omniscape.var"#90#threadsfor_fun#8#10"{Int64, Circuitscape.OutputFlags, Int64, Matrix{Float64}, Dict{String, String}, Float64, Float64, Float64, Float64, String, String, Bool, Bool, Bool, Bool, DataType, Dict{String, Int64}, UnitRange{Int64}}}, Int64})()
   @ Base.Threads .\threadingconstructs.jl:30
@vlandau
Copy link
Member

vlandau commented Sep 4, 2023

Hi @luciano-atzeni, sorry for the late reply. Did you ever get things figured out? If not, try updating Julia (to version 1.9.3) Circuitscape, and Omniscape once more, since there have been some updates since you posted this issue.

@vlandau
Copy link
Member

vlandau commented Oct 16, 2023

Closing this since I haven't heard back, but please feel free to reopen if the issue hasn't been resolved!

@vlandau vlandau closed this as completed Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants