Skip to content

fix(cli): support FOVs with differing ZYX shapes - #575

Open
srivarra wants to merge 2 commits into
mainfrom
fix/recon-hcs-fovs-diverse-shapes
Open

fix(cli): support FOVs with differing ZYX shapes#575
srivarra wants to merge 2 commits into
mainfrom
fix/recon-hcs-fovs-diverse-shapes

Conversation

@srivarra

@srivarra srivarra commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

We run a pass through the HCS store, and group positions by ZYX shape, then compute one transfer function per unique ZYX shape.

  • apply-inv-tf takes a single transfer function, so mixed shapes fail fast instead of writing wrong output.
  • create_empty_plate allocates one shape and scale per call, so output metadata is derived per position.

A transfer function is only valid for the ZYX shape it was computed
from, but `reconstruct` computed one from the first position and
applied it to every position, silently corrupting mixed-shape HCS
plates. Group positions by ZYX shape, compute one transfer function
per shape.

- `apply-inv-tf` takes a single transfer function, so mixed shapes
  fail fast instead of writing wrong output.
- `create_empty_plate` allocates one shape and scale per call, so
  output metadata is derived per position.
Signed-off-by: Sricharan Reddy Varra <sricharan.varra@biohub.org>
@srivarra
srivarra marked this pull request as ready for review August 8, 2026 00:30
@srivarra
srivarra requested a review from talonchandler as a code owner August 8, 2026 00:30
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.

[BUG] waveorder reconstruct does not handle plates with FOVs that have different ZYX sizes

1 participant