Skip to content

CLI behaviour fixes from the v0.10.1 review - #628

Merged
guijacquemet merged 7 commits into
integration/v0.10.1from
fix/cli-behaviour-v0.10.1
Dec 4, 2026
Merged

guijacquemet merged 7 commits into
integration/v0.10.1from
fix/cli-behaviour-v0.10.1

Conversation

@guijacquemet

@guijacquemet guijacquemet commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Behaviour fixes from the independent review of v0.10.1. This follows #627, which covers wording only.

Plan and progress

# Change Status
1 convert refuses axis roles that put an RGB TIFF's colours on another role than C (rgb_axes_contradict_header) Done: conversion_plan._rgb_contradictions, a test in test_convert.py, a user-guide row and a changelog entry
2 check checks what the next run reads: without --exclude or --masks, it uses the earlier run's exclusions and masks folder and says so (cli._reuse_recorded_inputs) Partly done: the new tests in test_check_reuses_run.py fail without the fix. Still open: check does not yet run the description's header checks (check_physical), so a channel-count or header contradiction still shows up only at run. Left for review because it changes what check reads
3 describe --publish exits 1 when the image headers contradict the published description (it printed "Nothing to publish" and exited 0) Done: cli_describe.py; test_notebook_prerelease.py now expects 1; guide and changelog updated
4 describe refuses the fast-mode options (--channels, --image-type, --accept-ids, --comparable, --confirmed-on) for a published description, which they never changed Done: _fast_options_given, PUBLISHED_UNCHANGED; new test in test_cli_usability.py
5 declare-masks --type ... --ignore ...: both apply or neither (mask_declare.check_ignore runs before anything is declared) Done; the new test fails without the fix
6 tissue-mask checks the rule, the he-mask extra and every image before it creates and records a masks folder Done; the new test fails without the fix
7 Without --comparable, describe names the notebook's Check and save card (step 1) for repeats that are not comparable Done; new test

Notes for review

Tests

Only targeted tests were run here. The full suite and release gates are left to the owner's local session.

  • Step 2: test_check_reuses_run.py plus test_cli.py, test_cli_usability.py, test_axis_check.py, test_cli_exit_status.py, test_cli_log.py, test_mask_step.py and test_notebook_prerelease.py: 180 passed, 1 skipped.
  • Steps 3–7: test_cli_usability.py, test_cli_describe.py, test_notebook_prerelease.py, test_declare_masks.py, test_ignored_masks.py, test_cli_tissue_mask.py, test_notebook_tissue_mask.py, test_spec_fast_layout.py and test_cli.py passed.
  • test_he_tissue_mask.py::test_a_non_editable_install_is_verified_and_reused_for_real fails here because it needs a non-editable install. It fails the same way with this PR's changes stashed.
  • Step 1: the conversion tests passed, 270 in total (test_convert*.py, test_cli_projection.py, test_projection_convert.py, test_notebook_convert.py, test_conversion_check_iterables.py, test_cli.py).

https://claude.ai/code/session_01G3qp99saj5j4QZfMeAZQUm


Generated by Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp99saj5j4QZfMeAZQUm
… a masks folder

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp99saj5j4QZfMeAZQUm
@guijacquemet
guijacquemet merged commit 211dcf7 into integration/v0.10.1 Dec 4, 2026
2 of 3 checks passed
guijacquemet pushed a commit that referenced this pull request Dec 4, 2026
#628 imported he_tissue_mask at the top of cli_tissue_mask, so a
core-only install loaded morphobricks_normalization.stain and the H&E
code on any CLI start (test_he_tissue_core_only failed). The import
moves into _prerequisites.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@guijacquemet
guijacquemet deleted the fix/cli-behaviour-v0.10.1 branch December 4, 2026 16:57
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