Repository navigation
PP-2: remove convert_tiffs, zarr_export, the moved-name shims and the old axis functions - #66
Merged
Merged
Conversation
… old axis functions
Spec revision 4, section 8 PP-2. Breaking for v0.4.0.
- convert_tiffs and zarr_export are removed: OME-Zarr copies in
<output>/ome_zarr, OmeZarrWriter, ConversionSettings, ConversionEstimate,
estimate_conversion, ome_zarr_relative_path, _CopyStaging; also
run_experiment(convert_tiffs=, conversion=), RunResult.converted, the CLI
--convert-tiff/--chunk-size/--compression/--compression-level/
--pyramid-levels, and the notebook's conversion card.
- The manifest no longer writes settings.convert_tiffs,
settings.conversion or files[].ome_zarr_path. An older manifest that
holds them is still read, and their rows are kept (they were the
TIFF's own).
- free_space moves to _io for the disk check of the coming OME-TIFF
conversion.
- The deprecated stand-ins of the code moved to morphobricks_normalization
are removed: _moved, csv_io, dtypes, histogram, normalization, pooling
and records, with the package's __getattr__. Tests import from the
normalization brick.
- check_declared_axes and declared_axes_transposed are removed rather than
deprecated: they read a Y/X swap transposed, which v0.4 forbids.
- The baseline shrinks (zarr_export, the conversion card and the old
functions are gone).
Docs: contract §9/§10/§16, user guide, plan §12 Q45/Q46, AGENTS.md,
README.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WX6rdMV1r5jUPUR94kxV5a
Conflicts in the docs, axes.py and the header-axes tests were resolved hunk by hunk with this PR's removals. The review commits' other edits are kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WX6rdMV1r5jUPUR94kxV5a
This was referenced Nov 1, 2026
The baseline conflict keeps main's identical-bodies sizes of 0 and drops the entries PP-2's removals made unnecessary (the zarr_export duplicate and the two declared-axes helpers). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WX6rdMV1r5jUPUR94kxV5a
…till describe them AGENTS.md's decisions log (Q12, Q15, P1) and testing notes, and the plan's OME-Zarr and large-plane passages, still described TIFF to OME-Zarr conversion and the deprecated stand-ins as current. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WX6rdMV1r5jUPUR94kxV5a
Contributor
Author
|
Independent review: approved after a merge of main and one docs commit. Checked
Fixed
Other bricks,
Gate on
Generated by Claude Code |
guijacquemet
marked this pull request as ready for review
November 1, 2026 17:20
This was referenced Nov 2, 2026
[Sad Catapella B3][Scientific correctness] OME-Zarr pyramid mean corrupts uint64/int64 precision
#75
Closed
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.
This is PP-2 of the v0.4.0 plan (
preprocessing-design-v0.4.md, revision 4, §8). It removes features and is breaking. PP-0 (#65) is merged, and main is merged into this branch (17fcb2e).Summary
convert_tiffsandzarr_exportare removed:<output>/ome_zarr,OmeZarrWriter,ConversionSettings,ConversionEstimate,estimate_conversion,ome_zarr_relative_pathand_CopyStaging.run_experiment(convert_tiffs=, conversion=)andRunResult.converted.--convert-tiff,--chunk-size,--compression,--compression-leveland--pyramid-levels._staged_outputs/_publish_outputslose their copy handling.settings.convert_tiffs,settings.conversionandfiles[].ome_zarr_pathare no longer written.free_spacemoves to_io, for the disk check of PP-11's OME-TIFF conversion._moved.py, thecsv_io,dtypes,histogram,normalization,poolingandrecordsmodules, and the package__getattr__. Tests now import frommorphobricks_normalization.check_declared_axesanddeclared_axes_transposedare removed, not deprecated (audit M7): they read a Y/X swap transposed, which v0.4 forbids. Their tests are removed; the axis check covers the rules.# noqa: ANNcount goes from 63 to 57.Review fix (
ecfc5af)AGENTS.md's decisions log (Q12, Q15, P1) and its testing note, and the plan's OME-Zarr and large-plane passages, still described the conversion and the stand-ins as current. They are now marked as history.
Notes for review
zarr_export.py, its 1,000-line test file and the notebook card.PhysicalSizesobjects pickled under the old module pathmorphobricks_preprocessing.zarr_exportno longer unpickle. Its test was removed.zarr_input, labels, and theunknown_scalereading.main(to migrate in their v0.4 PRs; not edited here):check_declared_axesanddeclared_axes_transposed;axes.check_declared_axesanddeclared_axes_transposed;zarr_export.OmeZarrWriterin a test;Tests
tests/test_removed_in_v040.py(25 tests): removed names and modules are gone; the run and the CLI refuse the conversion options; a v0.3 manifest with conversion keys is still read and its rows kept;free_space. On old main it fails at collection (_iodoes not exist).ecfc5af(ruff check, ruff format --check,tools/check.py --rules, pytest with.[dev,notebook,zarr]):Generated by Claude Code