pnlbwh / pnlpipe

A Python-based framework for processing anatomical (T1, T2) and diffusion weighted images
Other
12 stars 8 forks source link

Add port and script wrapper from Ofer's motion estimation code #1

Closed ihnorton closed 6 years ago

tashrifbillah commented 6 years ago

Hi, I reviewed your code. So, the following things are not clear to me-

  1. Description says

# and saves the result, the mean for each subject, and the case-list to a .mat file.

But mean_subject_motion has not been used anywhere. Ln 96 and Ln 176 saves the motion estimate, but mean over all the gradients is neither calculated nor saved. So, to be consistent with description, I am not sure if you want to remove the mean_subject_motion function.

  1. May be args.single_subject_ isn't defined anywhere (Ln 171)

Other than that, everything seems fine to me.

ihnorton commented 6 years ago

Thanks!

1 - np.mean is called in the directory routine, because it was simpler to organize that way. So right now mean_subject_motion is intentionally unused. 2 - fixed!