Skip to content

Commit caa898d

Browse files
alxndrkalininclaude
andcommitted
fix(docs): address Copilot review typos
- prediction_writer.py:63 — debug f-string said "Z-sclice"; fix to "Z-slice" to match the parameter docstring a few lines above. - qc/focus.py:54 — inline comment referenced a non-existent qc_metrics.run_qc_metrics; point to the actual orchestrator, generate_qc_metadata. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e069422 commit caa898d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

applications/qc/src/qc/focus.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ def channels(self) -> list[str]:
5151
def __call__(self, position, channel_name, channel_index, num_workers=4):
5252
"""Compute focus-slice index per timepoint for one channel of ``position``."""
5353
# Tensorstore concurrency is configured on the plate at
54-
# open-time (see qc_metrics.run_qc_metrics); num_workers is
55-
# retained here only to match the QCMetric abstract interface.
54+
# open-time (see qc_metrics.generate_qc_metadata); num_workers
55+
# is retained here only to match the QCMetric abstract interface.
5656
del num_workers
5757
tzyx = position["0"].native[:, channel_index].read().result()
5858

packages/viscy-utils/src/viscy_utils/callbacks/prediction_writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def _resize_image(image: ImageArray, t_index: int, z_slice: slice) -> None:
6060
Z-slice range for the incoming data.
6161
"""
6262
if image.shape[0] <= t_index or image.shape[2] < z_slice.stop:
63-
_logger.debug(f"Resizing image '{image.path}' {image.shape} for T={t_index}, Z-sclice={z_slice}.")
63+
_logger.debug(f"Resizing image '{image.path}' {image.shape} for T={t_index}, Z-slice={z_slice}.")
6464
image.resize(
6565
(
6666
max(t_index + 1, image.shape[0]),

0 commit comments

Comments
 (0)