Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 13, 2024
1 parent 9dc8055 commit f79622b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spatialdata/_core/operations/rasterize.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def rasterize_images_labels(
target_coordinate_system=target_coordinate_system,
)

if 'z' in spatial_axes:
if "z" in spatial_axes:
half_pixel_offset = Translation([0.5, 0.5, 0.5], axes=("z", "y", "x"))
else:
half_pixel_offset = Translation([0.5, 0.5], axes=("y", "x"))
Expand Down

0 comments on commit f79622b

Please sign in to comment.