Skip to content

Fix render_points crash when coloring by spatial coord (x/y)#671

Merged
timtreis merged 1 commit into
mainfrom
fix/issue-613-render-points-color-coord
May 20, 2026
Merged

Fix render_points crash when coloring by spatial coord (x/y)#671
timtreis merged 1 commit into
mainfrom
fix/issue-613-render-points-color-coord

Conversation

@timtreis
Copy link
Copy Markdown
Member

@timtreis timtreis commented May 19, 2026

Summary

  • render_points(color="x") and color="y" crashed because the coord column was appended to the dask projection list a second time, leading to a duplicate-column failure on .compute().
  • Skip the append when the color column is already in coords.

Closes #613

Coloring by a coordinate column (x or y) caused a duplicate column
append into the dask projection list, raising on .compute(). Skip the
append when the color column is already part of the projected coords.

Closes #613
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.63%. Comparing base (59da170) to head (45fdeab).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #671   +/-   ##
=======================================
  Coverage   77.63%   77.63%           
=======================================
  Files          11       11           
  Lines        3612     3613    +1     
  Branches      850      851    +1     
=======================================
+ Hits         2804     2805    +1     
  Misses        485      485           
  Partials      323      323           
Files with missing lines Coverage Δ
src/spatialdata_plot/pl/render.py 86.99% <100.00%> (+0.01%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@timtreis timtreis merged commit 96582ac into main May 20, 2026
7 of 8 checks passed
@timtreis timtreis deleted the fix/issue-613-render-points-color-coord branch May 20, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

render_points(color="x") crashes when coloring by a spatial coordinate column

2 participants