Skip to content

Commit

Permalink
PEP8 in reconst dipy#881
Browse files Browse the repository at this point in the history
  • Loading branch information
theaverageguy committed Mar 21, 2016
1 parent b8ae847 commit 050d28c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions dipy/reconst/csdeconv.py
Expand Up @@ -292,8 +292,9 @@ def __init__(self, gtab, ratio, reg_sphere=None, sh_order=8, lambda_=1.,
else:
self.sphere = reg_sphere

r, theta, phi = cart2sphere(
self.sphere.x, self.sphere.y, self.sphere.z)
r, theta, phi = cart2sphere(self.sphere.x,
self.sphere.y,
self.sphere.z)
self.B_reg = real_sph_harm(m, n, theta[:, None], phi[:, None])

self.R, self.P = forward_sdt_deconv_mat(ratio, n)
Expand Down Expand Up @@ -819,7 +820,8 @@ def auto_response(gtab, data, roi_center=None, roi_radius=10, fa_thr=0.7,
ci, cj, ck = roi_center
w = roi_radius
roi = data[int(ci - w):int(ci + w),
int(cj - w):int(cj + w), int(ck - w):int(ck + w)]
int(cj - w):int(cj + w),
int(ck - w):int(ck + w)]
tenfit = ten.fit(roi)
FA = fractional_anisotropy(tenfit.evals)
FA[np.isnan(FA)] = 0
Expand Down

0 comments on commit 050d28c

Please sign in to comment.