scverse / scverse/spatialdata

Sparse Array in Labels?

Open
#691 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

element: labels 🏷️ enhancement ✨
Dominant language
Python
Stars
394
Forks
95
Avg merge
4d 3h
Merged PRs (30d)
7

Description

I wonder if it's possible to support sparse array to some degree in Labels. If it's a mask then the sparse format could save quite a lot of disk space.

Sparse array status in xarray: pydata/xarray#3213
Documentation: https://docs.xarray.dev/en/latest/user-guide/duckarrays.html

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked xarray sparse-array discussion, pydata/xarray#3213, and the xarray duck-array documentation to understand the supported constraints. Then trace how Labels are represented and persisted in spatialdata. Done means the project has a decided scope for sparse-label support and a verified implementation or documented conclusion.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.