Skip to content

Add exact_bbox_output mode to build_subchunkable_apply_flow#1207

Open
supersergiy wants to merge 1 commit into
mainfrom
sergiy/exact-bbox-output
Open

Add exact_bbox_output mode to build_subchunkable_apply_flow#1207
supersergiy wants to merge 1 commit into
mainfrom
sergiy/exact-bbox-output

Conversation

@supersergiy
Copy link
Copy Markdown
Member

Summary

  • New exact_bbox_output parameter for writing exactly the user's bbox without expanding or destroying surrounding data
  • Processing uses expanded bbox internally with intermediaries
  • Copies only the original bbox to the final dst, using read-modify-write for edge chunks (no race conditions)
  • PrecomputedInfoSpec.to_mutable() enables intermediary creation on layers opened without info_scales
  • Surgery mode in smart_copy now uses exact_bbox_output=True

@supersergiy supersergiy force-pushed the sergiy/exact-bbox-output branch 2 times, most recently from 992b619 to 2677550 Compare March 26, 2026 21:35
@supersergiy supersergiy requested a review from dodamih April 27, 2026 12:50
Writes exactly the user-requested bbox without expanding or destroying
surrounding data. Processing uses the expanded bbox internally with
intermediaries; only the original bbox is copied to the final dst,
using read-modify-write for edge chunks.

CVBackend.with_changes now reconstructs InfoSpecParams from the existing
info file when the caller mutates voxel_offset / chunk_size / dataset_size
on an info_path-only spec, so layers opened without info_scales can be
used as the dst for intermediary creation.

The deprecated CVBackend gains overwrite_partial_chunks parity with the
modern backend so old version-pinned specs reach the new branch.
@supersergiy supersergiy force-pushed the sergiy/exact-bbox-output branch from 2677550 to 8feb3f2 Compare April 27, 2026 13:06
@ZettaAI ZettaAI deleted a comment from codecov Bot Apr 27, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.98%. Comparing base (b25c84a) to head (8feb3f2).
⚠️ Report is 94 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #1207    +/-   ##
========================================
  Coverage   99.98%   99.98%            
========================================
  Files         196      205     +9     
  Lines       10491    10700   +209     
========================================
+ Hits        10489    10698   +209     
  Misses          2        2            

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dodamih
Copy link
Copy Markdown
Collaborator

dodamih commented Apr 28, 2026

Can you fix the conflict please?

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