Skip to content

Align with hs2p 4.2.0: drop TilingConfig.tissue_threshold reads (#182)#183

Merged
clemsgrs merged 1 commit into
mainfrom
align-hs2p-4.2.0-tissue-threshold
Jun 24, 2026
Merged

Align with hs2p 4.2.0: drop TilingConfig.tissue_threshold reads (#182)#183
clemsgrs merged 1 commit into
mainfrom
align-hs2p-4.2.0-tissue-threshold

Conversation

@clemsgrs

Copy link
Copy Markdown
Owner

Closes #182.

hs2p 4.2.0 (clemsgrs/hs2p#158) collapses the derived TilingConfig.tissue_threshold scalar into the resolved min_coverage map — the single source of truth, where min_coverage["tissue"] is the tissue threshold.

slide2vec's runtime is unaffected: it never constructs a TilingConfig, already drops the standalone scalar (min_coverage.tissue is the source of truth), and build_hs2p_configs (runtime/tiling.py) delegates derivation to hs2p's resolve_tiling_config. No shipping code reads .tissue_threshold off the result — only the test suite and one stale comment did.

Changes

  • pyproject.toml — bump pin hs2p[...]>=4.1.2>=4.2.0 (both dependency blocks)
  • tests/test_regression_core.py — assert tiling_cfg.min_coverage["tissue"] (≈ 0.37) instead of the removed tiling_cfg.tissue_threshold
  • tests/test_regression_inference.py — same migration (≈ 0.1); comment reworded "derived" → "resolved"
  • slide2vec/runtime/tiling.py — reword the resolver comment for the field-removed world (min_coverage["tissue"] is the threshold)

Verification

Upgraded the local env to hs2p 4.2.0 and ran the full suite: 359 passed, 15 skipped.

Release ordering

Per #182, release after hs2p 4.2.0 (done) and before soma (clemsgrs/soma#97).

hs2p 4.2.0 (clemsgrs/hs2p#158) collapses the derived
TilingConfig.tissue_threshold scalar into the resolved min_coverage map,
the single source of truth (min_coverage["tissue"] is the tissue
threshold). slide2vec's runtime is already masks-only and never reads the
scalar; only the test suite and a stale comment referenced it.

- pyproject.toml: bump hs2p pin >=4.1.2 -> >=4.2.0
- tests: assert tiling_cfg.min_coverage["tissue"] instead of the removed
  tiling_cfg.tissue_threshold
- runtime/tiling.py: reword the resolver comment for the field-removed world

Full suite green against hs2p 4.2.0 (359 passed, 15 skipped).
@clemsgrs
clemsgrs merged commit 5117996 into main Jun 24, 2026
3 checks passed
@clemsgrs
clemsgrs deleted the align-hs2p-4.2.0-tissue-threshold branch June 24, 2026 18:29
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.

Update tissue_threshold test assertions after hs2p drops the derived field

1 participant