Skip to content

fix transform points with duplicate indices#1129

Merged
LucaMarconato merged 3 commits into
mainfrom
fix/transform-points-duplicate-indices
May 15, 2026
Merged

fix transform points with duplicate indices#1129
LucaMarconato merged 3 commits into
mainfrom
fix/transform-points-duplicate-indices

Conversation

@LucaMarconato
Copy link
Copy Markdown
Member

Closes #1105

The problem is that transcripts given by spatialdata_io.xenium() have non-unique indices across partitions (no table is annotating them, so uniqueness is not necessary).

The preserves the indices upon transformation.

@LucaMarconato LucaMarconato marked this pull request as draft May 15, 2026 11:35
…ndex

dd.from_delayed starts with empty attrs, so spatialdata_attrs (feature_key,
instance_key) was silently dropped. Copy all non-transform attrs from the
original element to restore the previous behaviour.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@LucaMarconato LucaMarconato marked this pull request as ready for review May 15, 2026 12:25
@codecov
Copy link
Copy Markdown

codecov Bot commented May 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.28%. Comparing base (5e3b982) to head (3500317).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1129   +/-   ##
=======================================
  Coverage   92.27%   92.28%           
=======================================
  Files          51       51           
  Lines        7797     7804    +7     
=======================================
+ Hits         7195     7202    +7     
  Misses        602      602           
Files with missing lines Coverage Δ
src/spatialdata/_core/operations/transform.py 91.73% <100.00%> (+0.24%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@LucaMarconato LucaMarconato enabled auto-merge (squash) May 15, 2026 12:29
@LucaMarconato LucaMarconato merged commit accf496 into main May 15, 2026
9 checks passed
@LucaMarconato LucaMarconato deleted the fix/transform-points-duplicate-indices branch May 15, 2026 12:31
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.

Error attempting to transform xenium transcript coordinate using transform()

1 participant