Skip to content

Commit

Permalink
Answer PK's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmaRenauld committed Apr 26, 2024
1 parent 3452087 commit 78fbd20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scilpy/image/volume_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ def resample_volume(img, ref_img=None, volume_shape=None, iso_min=False,
if len(volume_shape) == 1:
volume_shape = volume_shape * 3

new_zooms = tuple((o / r) * z for o, r, z in
new_zooms = tuple((o / v) * z for o, v, z in
zip(original_shape, volume_shape, original_zooms))

elif iso_min:
Expand Down
2 changes: 1 addition & 1 deletion scripts/scil_volume_resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def main():
if args.ref:
ref_img = nib.load(args.ref)
# Must not verify that headers are compatible. But can verify that, at
# least, that the last column of their affine are compatible.
# least, the last columns of their affines are compatible.
if not np.array_equal(img.affine[:, -1], ref_img.affine[:, -1]):
parser.error("The --ref image should have the same affine as the "
"input image (but with a different sampling).")
Expand Down

0 comments on commit 78fbd20

Please sign in to comment.