Commit 4debca2
authored
Categories addressed:
- Cat 3 (F401): remove unused `from functools import partial` (refactor
leftover; not re-exported)
- Cat 5 (mutable default): public `cost_distance(target_values=[])` ->
`None` sentinel normalized to `[]` in the body, mirroring proximity.py
(#2725). Reassigned via np.asarray before any mutation, so behaviour is
preserved. Adds regression tests covering default reuse and None.
- Cat 1 (E302): two blank lines before `@ngjit _heap_push`
- Cat 1 (E127): fix continuation-line over-indent in
_cost_distance_dask_cupy and _cost_distance_dask_iterative signatures
- Cat 4 (isort): dataset_support before utils; utils from-import reflowed
to 100 cols
No behavioural change for the Cat 1/3/4 fixes. The Cat 5 change preserves
behaviour. flake8 and isort --check-only are clean on the module; 57
cost_distance tests pass.
1 parent 56b4564 commit 4debca2
2 files changed
Lines changed: 10 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| |||
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
58 | 54 | | |
59 | 55 | | |
60 | 56 | | |
61 | 57 | | |
62 | 58 | | |
| 59 | + | |
63 | 60 | | |
64 | 61 | | |
65 | 62 | | |
| |||
458 | 455 | | |
459 | 456 | | |
460 | 457 | | |
461 | | - | |
462 | | - | |
| 458 | + | |
| 459 | + | |
463 | 460 | | |
464 | 461 | | |
465 | 462 | | |
| |||
1002 | 999 | | |
1003 | 1000 | | |
1004 | 1001 | | |
1005 | | - | |
1006 | | - | |
1007 | | - | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
1008 | 1005 | | |
1009 | 1006 | | |
1010 | 1007 | | |
| |||
0 commit comments