Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions viscy/light/predict_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,11 @@ def on_predict_start(self, trainer: Trainer, pl_module: LightningModule) -> None
"Cannot write input to an existing store. Aborting."
)
else:
with open_ome_zarr(self.output_store, mode="r+") as plate:
for _, pos in plate.positions():
for ch in prediction_channel:
pos.append_channel(ch, resize_arrays=True)
self.plate = open_ome_zarr(self.output_store, mode="r+")
for _, pos in self.plate.positions():
for ch in prediction_channel:
pos.append_channel(ch, resize_arrays=True)
else:
channel_names = prediction_channel
if self.write_input:
Expand Down