Skip to content

Fix test breaks the port left: measurement contract methods, materializer spellings, a moved import - #1375

Merged
trissim merged 2 commits into
mainfrom
port/siblings-latest
Nov 22, 2026
Merged

trissim merged 2 commits into
mainfrom
port/siblings-latest

Conversation

@trissim

@trissim trissim commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

Two commits by pm-trainer-e, each with its focused tests run in its message:

  • ecddb19e The measurement contract answers its own sample-number questions (RuntimeMeasurementRowIdentityContract predicates are methods again; MeasurementStatistic moved next to it, 6 importers repointed); feature_enhancement.py imports morphology_family.morphology, so the speckles FAST path with radius over 3 is no longer dead.
  • 2e6d1ec6 Tests spell their materializers the way the library does now (MaterializationSpec(CsvOptions(...)) etc., 64 call sites); the test of a deleted helper is gone.

Context: CI on #1374 was red (unit-subset, smoke, structural-ratchet); these cure the unit-subset failures that were the code's own. The others (ui-theme and pyqt-reactive installed from PyPI releases that lack what the port targets) are a CI change that follows.

Maintainer instruction to merge: Tristan, bus message 32383 (5f618fde8035).

🤖 Generated with Claude Code

https://claude.ai/code/session_016gZLdxS38RuoZjQTydVqFS

…oved import is followed

The contract's two predicates were module functions in runtime_measurements while their
callers (image_set_numbering, spreadsheet_export, the dialect test) called them on the
contract. They are methods of the contract again, and MeasurementStatistic, which the
aggregate one needs, sits beside it, so runtime_measurements no longer imports it back.
feature_enhancement imported cellprofiler.morphology, which is morphology_family.morphology.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016gZLdxTa9e8d6J4PvBWMM9
csv_only(), json_only(), text_only(), tiff_stack(), roi_zip() and the *_materializer helpers came
from a presets module that is not in this history; the library's own spelling is
MaterializationSpec(XOptions(...)). The one test that only tested a deleted helper goes with it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016gZLdxTa9e8d6J4PvBWMM9
@trissim
trissim merged commit f6114f9 into main Nov 22, 2026
3 of 5 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.

2 participants