Skip to content

Pin the normalization brick to its release v0.3.2 - #47

Merged
guijacquemet merged 1 commit into
mainfrom
claude/normalization-v032
Oct 30, 2026
Merged

guijacquemet merged 1 commit into
mainfrom
claude/normalization-v032

Conversation

@guijacquemet

Copy link
Copy Markdown
Contributor

Summary

  • pyproject.toml: morphobricks-normalization @ git+...@v0.3.1 becomes @v0.3.2 (tag on f784c95, reports 0.3.2), and the comment says what v0.3.2 adds.
  • README and AGENTS name v0.3.2. The stale v0.2.0 mention in AGENTS §1 is corrected too. Release history entries are left as they are. No notebook, requirements file or workflow names the tag.
  • The package version is not changed. The preprocessing release is separate.

normalization v0.3.2 (normalization#19) checks each plane_histograms.csv row's stored plane_id, image_file and bit_depth against the row's other columns when it reads the table. An inconsistent row now raises CsvFormatError; before, it was silently recomputed. This is the CSV item of #39.

Tests

  • New: test_a_row_whose_plane_id_disagrees_with_its_columns_is_refused. Changing one row's stored plane_id makes read_plane_histograms raise CsvFormatError. A rerun that reads such a table recomputes it ("the earlier histogram table could not be read"). With v0.3.1 installed the test fails (DID NOT RAISE); with v0.3.2 it passes.
  • pytest with normalization 0.3.2 installed: 1131 passed, 1 skipped (test_discovery.py:472, root ignores file modes). ruff check . and ruff format --check . are clean.

Part of #39.


Generated by Claude Code

morphobricks-normalization v0.3.2 (normalization#19) checks each
plane_histograms.csv row's stored plane_id, image_file and bit_depth against
the row's other columns when reading, so an inconsistent row is refused
(CsvFormatError) instead of silently recomputed (issue #39, CSV item).
pyproject, README and AGENTS now name v0.3.2. The package version is not
changed (the release is separate).

Regression test test_a_row_whose_plane_id_disagrees_with_its_columns_is_refused:
DID NOT RAISE with v0.3.1, passes with v0.3.2; a rerun finding such a table
recomputes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VbytvBRB9CmKQ5AAkhEFcv

Copy link
Copy Markdown
Contributor Author

Branch cut from the current main, no conflicts. The pin moves to normalization v0.3.2. The new plane_id regression test fails with v0.3.1 and passes in CI, so CI installed v0.3.2. 1131 passed, 1 skipped (test_discovery.py:472, root), ruff clean, CI 7/7 green on aafe8da. Merging.


Generated by Claude Code

@guijacquemet
guijacquemet merged commit 0056a16 into main Oct 30, 2026
7 checks passed
guijacquemet added a commit that referenced this pull request Oct 30, 2026
Version 0.3.2: data-flow audit fixes (PRs #40–#47)
@guijacquemet
guijacquemet deleted the claude/normalization-v032 branch November 1, 2026 18:05
guijacquemet pushed a commit that referenced this pull request Nov 3, 2026
Normalization main 534c63d (#65, issue #47) refuses a PlaneHistogram with
valid pixels and no pixel_min or pixel_max. The test now passes them from
the version-2 columns; it passes with v0.3.3 (still the pin) and 534c63d.
It is the only PlaneHistogram construction in src/ and tests/.

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.

2 participants