Skip to content

Commit

Permalink
maint: pep8 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
eilidhmacnicol committed Feb 10, 2021
1 parent 61d4e45 commit a058c54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nirodents/workflows/brainextraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,9 +460,9 @@ def _bspline_grid(in_file):
slices = img.header.get_data_shape()
# get slice ratio
ratio = [s / slices[np.argmax(slices)] for s in slices]
ratio_factor = ratio[np.argmax(ratio)]/ratio[np.argmin(ratio)]
ratio_factor = ratio[np.argmax(ratio)] / ratio[np.argmin(ratio)]
# turn into integer resolution
mesh_res = [ f"{round(i * ratio_factor)}" for i in ratio ]
mesh_res = [f"{round(i * ratio_factor)}" for i in ratio]
return f"-b [{'x'.join(mesh_res)}]"


Expand Down

0 comments on commit a058c54

Please sign in to comment.