Skip to content

fix(network_cost): NaN for unreachable cells, value tests, example 04… - #58

Merged
profsergiocosta merged 2 commits into
mainfrom
fix/network-cost
Oct 4, 2026
Merged

profsergiocosta merged 2 commits into
mainfrom
fix/network-cost

Conversation

@profsergiocosta

Copy link
Copy Markdown
Member

No description provided.

claude and others added 2 commits October 4, 2026 14:57
… workspace, lint

- network_cost reports cells that cannot reach any target as NaN (RuntimeWarning), not inf
- examples/04_network_connectivity.py takes the workspace argument like the others,
  which fixes tests/test_examples.py
- tests/test_network_cost_operator.py: value tests with hand-computed expectations
  (corridor, outside factor, unit_scale, cost_column, status_column, entrance
  segment vs vertex, MultiLineString, several targets, empty targets, targets file,
  raster source rejected)
- ruff fixes in the touched files; proximity.py back to mode 644
@profsergiocosta
profsergiocosta merged commit ef7e9a7 into main Oct 4, 2026
6 checks passed
@profsergiocosta
profsergiocosta deleted the fix/network-cost branch October 4, 2026 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants