Skip to content

Commit

Permalink
Update ecat_testing/read_matlab_nii.py
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Markiewicz <[email protected]>
  • Loading branch information
bendhouseart and effigies authored May 10, 2024
1 parent 0e3422c commit ad7368f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecat_testing/read_matlab_nii.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def first_middle_last_frames_to_text(four_d_array_like_object, output_folder, st
# subtract the two arrays
diff = python_data - matlab_data
print(f"difference max and min: {diff.max()}, {diff.min()}")
print(f"mean difference: {diff.mean()}")
print(f"mean difference: {np.sqrt(np.mean(diff ** 2))}")

# save diff as nii
diff_nii = python_nii.__class__(diff, python_nii.affine, python_nii.header)
Expand Down

0 comments on commit ad7368f

Please sign in to comment.