Repository navigation
v0.10.1: command-line gaps before the next brick (describe, check, declare-masks, convert) - #620
Open
guijacquemet wants to merge 3 commits into
Open
guijacquemet wants to merge 3 commits into
guijacquemet wants to merge 3 commits into
Conversation
- describe: fast mode no longer crashes on images fewer than three folder levels deep (condition/img.tif, an image in the experiment folder); the tagged unit comes from the discovered leaf folder. - describe --rgb-header-override [FOLDER]: records rgb_header_override = true as the notebook does; the refusal of minisblack RGB TIFFs names it. - check reports an undeclared mask type (OME-Zarr labels included) as run refuses it; declare-masks prints next commands without a placeholder masks folder when none was given. - describe lists open questions only while the fast-mode options leave some. - check and run suggest rgb when the published description declares every acquisition rgb (OME-Zarr states no colour interpretation). - convert --store ome-zarr. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G3qp983bS22og2asjnEc8P
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G3qp983bS22og2asjnEc8P
- The shared run/check texts no longer name a describe option; describe adds its own command-line line, and the override hint appears only for images it can lift (PhysicalIssue.override_fits). - check's discovery_report.json records R_MASK_TYPE_NOT_DECLARED; the mask fix is shell-quoted. - --rgb-header-override: without --channels says what is missing; the bare form mixed with folders is refused. - --accept-ids leaves ID questions without a proposal open; counts use plural(). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G3qp983bS22og2asjnEc8P
guijacquemet
marked this pull request as ready for review
December 3, 2026 17:40
Contributor
Author
Combined check of
|
| Check | Result |
|---|---|
#621: conda setuptools .egg-info (no RECORD) |
A real egg-info was installed in the venv. torch requires setuptools, so fiberfeatures' closure reaches it. brick_identity no longer lists or follows it: normalization's identity is certain, and the other bricks are uncertain only because of their editable installs. |
#621: fast describe on exp/condition/img.tif |
Works for fluorescence (TIFF and OME-Zarr) and RGB. |
#620: describe --rgb-header-override |
Colour TIFFs with a minisblack header and 3 samples: the description is published with rgb_header_override = true, and the run manifest records image_type_header_overridden. |
#620: convert --store ome-zarr |
The OME-Zarr copies run through describe, run and fiberfeatures settings/check/run, including execution_route = "patch_window". |
#620: declare-masks |
--type Cells=instances --type Tissue=binary, then run --masks and masks: the next commands it prints are right. |
#622: tissue-mask (he_tissue_v2) |
On flips of tests/data/he_core_1B_D9_crop.npz saved as minisblack TIFFs, 35.0 % is kept on every image (not empty). fiberfeatures with region_mask = "HETissue" and stain_preset = "he_eosin" measures 35,876 px per image. |
Findings, not fixed (owner's call)
- A condition folder named
controlis a dead end in fast mode.controlis indescription_rules.FORBIDDEN, sodescribeprints "control: no ID can be proposed (E_FORBIDDEN_FIELD): you name it", and--accept-ids --publishstops with "name it in the notebook". There is no command-line way to name it. Many first-time users will call a foldercontrol. fiberfeatures' quick start now warns about it. Options: adescribe --id control=ctrlstyle option, or proposing a non-forbidden ID. tissue-maskneeds a run with a masks folder first. "the run has no masks folder; ... Run preprocessing with a masks folder first" is clear, but a user without masks has to make an empty folder and run again (run --masks EMPTY_FOLDERworked). Maybe worth one sentence in §5's H&E route.- The channel-identity "Not checked (N): ... fewer than 3 other units ..." block prints on every
runof a small experiment. It is correct, but long for a first run.
Generated by Claude Code
guijacquemet
pushed a commit
that referenced
this pull request
Dec 4, 2026
…wner's 4 December follow-ups Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G3qp9ASFzYU5CY2vs1ReWg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Command-line gaps a new user hit before reaching fiberfeatures (the clean-environment test of the v0.10.0 wave, 3 December 2026). Unreleased v0.10.1; no format change.
cli_describe.py: fastdescribeno longer crashes (IndexErrorin_unit_of) when images are fewer than three folder levels deep (exp/condition_x/img.tif, or one OME-Zarr in the experiment folder). The tagged unit now comes from the discovered leaf folder's labels (_image_units), so missing levels aresingle, as in the draft.cli_describe.py,fast_answers.py: new--rgb-header-override [FOLDER](fast mode, needs--image-type rgb).rgb_header_override = trueon the unit, exactly as the notebook's Image type card does.--strict.physical_unit.py,description_run_text.py: the refusal of minisblack RGB TIFFs (R_IMAGE_TYPE_CONTRADICTS_HEADER, and theR_FAST_LAYOUT_CONTRADICTIONdetail and action) now names the CLI option beside the notebook card.cli.py,physical_check.py:checkreports an undeclared mask type asrunrefuses it. Both go through the sharedundeclared_mask_types(R_MASK_TYPE_NOT_DECLARED, same text), OME-Zarr label images included, andcheckexits 1.--type cells=REPRESENTATION) and never suggests a representation.cli_declare_masks.py: without--masks, the next commands no longer print--masks MASKS; a line says when to add a masks folder.EXPERIMENTis printed only when no run of the output folder records the experiment.cli_describe.py: fast mode lists open questions only while the options leave some. Otherwise it says the options answered them, instead of "answered by you, in the notebook".image_type.py,run/description_run.py,cli_run.py,cli.py:checkandrunsuggestrgbwhen the published description declares every acquisitionrgband RGB is possible (declared_image_type,review_image_type(..., declared=)).cli_convert.py: newconvert --store ome-tiff|ome-zarr(defaultome-tiff). The texts name the format written.--rgb-header-override; convert: OME-Zarr copies and the H&E route; declare-masks), the §8 rows, contract §13, AGENTS.md, and the CHANGELOG under "Unreleased (v0.10.1)".Decisions
omerocolours are display only (written white).runon such copies recordedimage_type: fluorescencein the manifest even though the description saidrgb.rgbchanges the suggestion, and only when the images can be RGB. A recorded image type from an earlier run still takes precedence, as before.Notes for review
entry_identity.pyor the H&E tissue-mask rule.--store ome-zarrroute was checked end to end in tests: convert RGB TIFFs, then describe as rgb, check, run, and the manifest recordsimage_type: rgb. Not tried on the Zenodo 4550300 data itself.runandcheckshare no longer name adescribeoption (describeprints its own command line, and the override hint appears only for images the override can lift: three interleaved samples under a header not saying colour,PhysicalIssue.override_fits);check'sdiscovery_report.jsonrecordsR_MASK_TYPE_NOT_DECLARED; the mask fix is shell-quoted;--rgb-header-overridewithout--channelssays what is missing, and the bare form mixed with folders is refused;--accept-idsleaves ID questions with no proposal open; counts useplural().fluorescencefor RGB OME-Zarr keeps it on reruns unless--image-type rgbis given (existing precedence: given, then recorded, then suggested).Tests
tests/test_cli_usability.py, 20 tests covering all six items and the review fixes.ruff check .,ruff format --check .andpython tools/check.py --rulespass.pytest -n 4, Python 3.13, zarr 3.4.2): 9193 passed, 32 skipped (the skips include theskimage-dependent tissue-mask tests). GitHub Actions is blocked, so CI did not run.Generated by Claude Code