Skip to content

Notebook: Stains is not applicable when every folder is colour (RGB) - #249

Merged
guijacquemet merged 2 commits into
mainfrom
claude/all-rgb-no-label
Nov 9, 2026
Merged

guijacquemet merged 2 commits into
mainfrom
claude/all-rgb-no-label

Conversation

@guijacquemet

Copy link
Copy Markdown
Contributor

Fixes #240

What

When the user has declared every folder rgb (saved image-type answers only; never the header's unconfirmed pre-tick), the Stains step (8) is "not applicable: every folder is colour (RGB)". Its chip shows done with a "not applicable" note, Tag channels opens without labels (and is done), and Check and save completes without a channel label. Mixed or unanswered image types keep today's behaviour.

Spec

experiment-v1 section 4.4b (RGB imaging units): an rgb unit lists exactly ["R", "G", "B"], which are fixed tokens with no aliases; section 4.3 (channels) only needs declared IDs. So no label is required. Saving already wrote exactly this (channels.R/G/B with no header_names, units image_type = "rgb", channels = ["R","G","B"]); a test pins it.

Change

  • channel_answers.all_colour: true only when every layout is usable with a saved rgb answer.
  • notebook_channels: _stains_not_applicable; the grid opens when labels are confirmed or not applicable.
  • LabelsCard.set_not_applicable: hides the questions and says why. Already-declared labels stay saved.
  • notebook_step_states / notebook_steps: Stains and Tags states and the wait message.
  • Does not touch Step 1/5 thumbnails, tag blocks or mask evidence.

Tests

tests/test_notebook_stains_na.py: an all-RGB fixture completes Stains and Check and save with no label and saves (fails on main); saved file content; header pre-tick alone, mixed, and one-folder-changed cases still require the label.

python tools/check.py: 4993 passed, 4 skipped (case-insensitive FS x3, file-mode x1).


Generated by Claude Code

…ur (RGB)

Experiment-v1 section 4.4b fixes R, G and B as the channels of an rgb unit, so an
experiment whose every folder the user declared rgb needs no channel label. Stains
then reads "not applicable: every folder is colour (RGB)" (chip done, noted), Tag
channels opens without labels, and Check and save completes. Mixed or unanswered
image types, and the header's unconfirmed colour pre-tick, keep the labels required.

Fixes #240

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp9AxjpGPw9xfWAUJNqc
…r; tighten tests

- The "first name what you stained" intro contradicts the not-applicable card, so it is hidden
  while every folder is declared colour.
- all_colour requires the saved rgb answer to still fit the image (3 channels).
- The mixed-experiment test was vacuous (no axis roles confirmed, so no layouts): replaced by a
  folder left on the header pre-tick. Added the stale-labels case (valid; W_UNUSED_CHANNEL per
  the vendored refval) and an all_colour unit test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp9AxjpGPw9xfWAUJNqc
@guijacquemet
guijacquemet merged commit d80efb9 into main Nov 9, 2026
7 checks passed
@guijacquemet
guijacquemet deleted the claude/all-rgb-no-label branch November 9, 2026 12:08
guijacquemet pushed a commit that referenced this pull request Nov 9, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp9AxjpGPw9xfWAUJNqc
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.

Notebook: an all-RGB experiment should not need a channel label on "Your channels"

2 participants