Circuitscape / Circuitscape.jl

Algorithms from circuit theory to predict connectivity in heterogeneous landscapes
https://circuitscape.org
MIT License
128 stars 35 forks source link

MethodError: no method matching Circuitscape.RasterData(::Matrix{Float64}, ::Matrix{Int64}, ::Matrix{Float64}, ::Matrix{Float64}, ::Tuple{Vector{Int64}, Vector{Int64}, Vector{Int64}}, ::Matrix{Float64}, ::Nothing, ::Circuitscape.RasterMeta) #306

Closed luroy closed 3 years ago

luroy commented 3 years ago

Dear all,

I’ve just started using Circuitscape on Julia with to connect only some focal node pairs (for which the Euclidean distance is less than a given threshold theshold). So I apologize in advance if my following comment is due to my unfamiliarity with Circuitscape include/exclude' option.

From a given input, I ran Circuiscape in all-to-one mode with a file indicating focal node pairs to include following the example file "listofpairstoinclude.txt" in the examples directory. I got the following error when running ini file:

However, I have no error when I do this with the "one-to-all" mode.

Please find all input files and the .ini file associated at the following link: https://drive.google.com/drive/folders/1wdBCJvFvKUArEZjF4MaRfYS9NPawzo-q?usp=sharing

Thank you for your attention to this matter,

Léa

ranjanan commented 3 years ago

@luroy the header of your include / exclude pairs file should have the words "mode" and "include"/"exclude" like https://github.com/Circuitscape/Circuitscape.jl/blob/master/test/input/raster/pairwise/17/pairs_to_include.txt, yours has "X1" and "X2". Having said that, a more sensible error message is in order.

luroy commented 3 years ago

@ranjanan thank you very much for your answer. I'm really sorry. In trying to report about the error I get when the file is correctly formatted (https://github.com/Circuitscape/Circuitscape.jl/issues/311), I induced this error by formatting the file incorrectly...

ranjanan commented 3 years ago

No worries at all @luroy, please don't apologize. Your issues add value to this project by improving it's functionality and polish. 😄 Thanks a lot for reaching out and being involved!

ranjanan commented 3 years ago

I will check out #311 shortly.