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

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

Open lionel68 opened this issue 6 years ago • 3 comments

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.

lionel68 avatar Jul 28 '17 07:07 lionel68