Skip to content

style(convolution): drop unused import, fix isort ordering#3613

Merged
brendancol merged 2 commits into
mainfrom
deep-sweep-style-convolution-2026-07-02
Jul 5, 2026
Merged

style(convolution): drop unused import, fix isort ordering#3613
brendancol merged 2 commits into
mainfrom
deep-sweep-style-convolution-2026-07-02

Conversation

@brendancol

Copy link
Copy Markdown
Contributor

Style sweep cleanup for xrspatial/convolution.py.

Two findings, both flagged by the project's own tooling:

  • F401 (flake8): not_implemented_func was imported from xrspatial.utils but never used. It's a refactor leftover and isn't re-exported, so removing it is safe.
  • isort: the xrspatial.utils import was split across two separate from ... import statements. Merged into one alphabetised block.

No behavioural change. flake8 and isort are clean on the module after the fix, and the 6 convolution tests pass.

…t ordering

Cat 3 (F401): remove unused not_implemented_func imported from
xrspatial.utils (refactor leftover, not re-exported).
Cat 4 (isort): merge the two split 'from xrspatial.utils import' lines
into a single alphabetised block.

No behavioural change; flake8 + isort clean, 6 convolution tests pass.

Includes sweep-style-state.csv update for convolution.
@github-actions github-actions Bot added the performance PR touches performance-sensitive code label Jul 2, 2026
@brendancol
brendancol merged commit c00c340 into main Jul 5, 2026
10 checks passed
brendancol added a commit to brendancol/xarray-spatial that referenced this pull request Jul 6, 2026
…y-contrib#3616/xarray-contrib#3619/xarray-contrib#3620

Keep both sides in convolution.py (_validate_kernel from this branch,
_PARALLEL_KERNEL_LOCK + parallel=True kernel from main) and both test
blocks. State CSV: main's file with this branch's convolution row.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance PR touches performance-sensitive code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant