Circuitscape.jl icon indicating copy to clipboard operation
Circuitscape.jl copied to clipboard

Included pairs file ignored

Open riccile opened this issue 3 years ago • 8 comments

Hi, I am trying to run just a subset of pairs using an included pairs file but CS seems to be ignoring it.

In the attached files, I include only 3 pairs of the 11 nodes in the point file but when I run the code it says the total number of pair solves = 55 and starts computing all of them.

Any idea why I'm running into this issue? Thanks for your help!

Link: https://drive.google.com/drive/folders/1xgvgebBcQy8eVHVd1KWPinilyHFq77Qb?usp=sharing

riccile avatar Dec 15 '21 18:12 riccile

hi @ranjanan , I encountered the same problem as @riccile. I don't see how #374 solve this as I am not using polygons in points file. I am using circuitscape with raster data on pairwise mode with a simple pair.txt file but when I run the job circuitscape compute all pairs regardless of the pair list. link to my files : [(https://drive.google.com/drive/folders/1IjNFiCot8rpc3XkvfUqnMEKruPTygAE-?usp=sharing)]

mariesoret avatar Jan 05 '23 18:01 mariesoret

I found that it partly solved the problem. The file isn't ignored but it runs all pairs that have both nodes included somewhere in the file. For example, 

mode include 1 2 1 3

will run 1-2, 1-3, and 2-3.   Hope that helps find the problem.

On 1/5/2023 11:22:25 AM, mariesoret @.> wrote: hi @ranjanan [https://github.com/ranjanan] , I encountered the same problem as @riccile [https://github.com/riccile]. I don't see how #374 [https://github.com/Circuitscape/Circuitscape.jl/pull/374] solve this as I am not using polygons in points file. I am using circuitscape with raster data on pairwise mode with a simple pair.txt file but when I run the job circuitscape compute all pairs regardless of the pair list. link to my files : [(https://drive.google.com/drive/folders/1IjNFiCot8rpc3XkvfUqnMEKruPTygAE-?usp=sharing)] — Reply to this email directly, view it on GitHub [https://github.com/Circuitscape/Circuitscape.jl/issues/341#issuecomment-1372574968], or unsubscribe [https://github.com/notifications/unsubscribe-auth/AJYR5NXFIGTYQCKAO76LBMDWQ4GODANCNFSM5KEMPCYA]. You are receiving this because you were mentioned.Message ID: @.>

riccile avatar Jan 05 '23 18:01 riccile

HI, I try to run the same data with a distance matrix file instead of the pair list file and I have the same issue. ao_exp_dist.txt

mariesoret avatar Jan 09 '23 10:01 mariesoret

Thanks for bringing these up. @riccile thank you for that simpler clarifying example. I shall test with that.

ranjanan avatar Jan 09 '23 16:01 ranjanan

Hi, I have the same issue. Did anyone solve the issue?

Previously I was running a raster circuitscape that had to solve 25425 pairs (between patches), and I got OutofMemory() error.

Thus I selected only some pairs between patches (2025), but circuitscape still run through all the pairs.

If I look at the .out file, it starts from the first patch in order of ID, not in order of rows. I see that at each calculation, it calculates all the possible pairs from this first patch.

I also see that at every calculation, the last one is erased by the following one. Probably only when it gets a pair that is present in the include.txt file, the output is recorded. But I am not sure.

I hope it can help to find the problem.

FaustiniG avatar Apr 18 '24 15:04 FaustiniG