Skip to content
This repository was 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

@lionel68

Description

@lionel68

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions