Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Solver failed in csgui.py but works fine for csgui.exe #85

Open
lionel68 opened this issue Jul 28, 2017 · 3 comments
Open

Solver failed in csgui.py but works fine for csgui.exe #85

lionel68 opened this issue Jul 28, 2017 · 3 comments

Comments

@lionel68
Copy link

When using csgui.py or csrun.py I get solver failure but using csgui.exe on the same data give me resistance values.

I used the resistance and focal point map provided in the user guide and in the example folder (resistance.asc and focal_region_grid.asc). Here is the ouput from the python scripts:
Calling Circuitscape...
Reading maps
Processing maps
Solving focal pair 1 of 3
Graph has 78 nodes, 2 focal nodes and 1 components.
Solver failed for at least one focal node pair.
Pairs with failed solves will be marked with value of -777
in output resistance matrix.

Solving focal pair 2 of 3
Graph has 79 nodes, 2 focal nodes and 1 components.
Solver failed for at least one focal node pair.
Pairs with failed solves will be marked with value of -777
in output resistance matrix.

Solving focal pair 3 of 3
Graph has 81 nodes, 2 focal nodes and 1 components.
Solver failed for at least one focal node pair.
Pairs with failed solves will be marked with value of -777
in output resistance matrix.

Job took 0 minutes 0 seconds to complete.

Pairwise resistances (-1 indicates disconnected focal node pair, -777 indicates failed solve):
1 2 -777.0
1 3 -777.0
2 3 -777.0

Done.

And here is the output from csgui.exe
Calling Circuitscape...
Reading maps
Processing maps
Solving focal pair 1 of 3
Graph has 78 nodes, 2 focal nodes and 1 components.
Solved focal pair 1 of 3
Solving focal pair 2 of 3
Graph has 79 nodes, 2 focal nodes and 1 components.
Solved focal pair 2 of 3
Solving focal pair 3 of 3
Graph has 81 nodes, 2 focal nodes and 1 components.
Solved focal pair 3 of 3
Job took 0 minutes 0 seconds to complete.

Pairwise resistances (-1 indicates disconnected node pair):
Node1 Node2 Resistance
1 2 6.47457070453
1 3 10.5392610695
2 3 7.80590609411

Done.

@LLeiSong
Copy link

LLeiSong commented Apr 24, 2018

Got the same problem but in my own data. It works fine in the test data.
I tried them on Mac.

@ViralBShah
Copy link
Member

Can you try the Julia versions?

@LLeiSong
Copy link

@ViralBShah Thanks for the comment. I tried, but there is another issue. ranjanan is working on that, which I appreciate it. Let's see what's gonna happen. I tried every possible things that I can. The only working way is the GUI, but it is super slow for large images.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants