Skip to content

feat(schema): observation_unit, unit_size_um and observation_unit_source catalog columns - #71

Merged
timtreis merged 1 commit into
mainfrom
feat/observation-unit-columns
Nov 8, 2026
Merged

timtreis merged 1 commit into
mainfrom
feat/observation-unit-columns

Conversation

@timtreis

@timtreis timtreis commented Nov 8, 2026

Copy link
Copy Markdown
Member

Adds three optional catalog columns:

  • observation_unit: what one table row is, in spatialdata-io's vocabulary (spot_or_bin, cell, subcellular_bin or region).
  • unit_size_um: the spot diameter or bin side in µm. It is null for cells and when unknown.
  • observation_unit_source: table when the hub read the unit from the table's uns["spatialdata_io"], or technology_map when it fell back to its technology map (zarrs written before the reader recorded the unit).

obs_unit, the noun the website shows, is unchanged.

The hub fills the three columns in a companion PR on the hub (T117). Tests: test_catalog_schema checks the new columns, and the rest of the suite passes (447 passed).

…rce catalog columns

What one table row is in spatialdata-io's vocabulary (spot_or_bin / cell / subcellular_bin / region),
the spot diameter or bin side in um, and whether the hub read them from the table's
uns['spatialdata_io'] or from its technology map. Optional, nullable. obs_unit (the card noun) stays.
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 spatialdata-db | 🛠️ Build #35741475 | 📁 Comparing d0c88c8 against latest (3b856f3)

  🔍 Preview build  

4 files changed
± index.html
± intro/assays.html
± intro/db-stack.html
± reference/catalog-columns.html

@codecov

codecov Bot commented Nov 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.72%. Comparing base (3b856f3) to head (d0c88c8).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #71   +/-   ##
=======================================
  Coverage   94.72%   94.72%           
=======================================
  Files          22       22           
  Lines        2313     2313           
=======================================
  Hits         2191     2191           
  Misses        122      122           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@timtreis
timtreis merged commit dc7a66b into main Nov 8, 2026
7 checks passed
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.

1 participant