Skip to content

Commit

Permalink
Fix the sqrt usage in conform.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dkuegler committed Feb 6, 2024
1 parent f2fd3d5 commit ea287ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FastSurferCNN/data_loader/conform.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ def check_affine_in_nifti(
vox_size_header = header.get_zooms()

# voxel size in xyz direction from the affine
vox_size_affine = (img.affine[:3, :3] * img.affine[:3, :3]).sum(0).sqrt()
vox_size_affine = np.sqrt((img.affine[:3, :3] * img.affine[:3, :3]).sum(0))

if not np.allclose(vox_size_affine, vox_size_header, atol=1e-3):
message = (
Expand Down

0 comments on commit ea287ad

Please sign in to comment.