Skip to content

Commit

Permalink
fixed saving modified nii in DIPY reg
Browse files Browse the repository at this point in the history
  • Loading branch information
pjmark committed Sep 30, 2023
1 parent c1d50f1 commit 48b228b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions niftypet/nimpa/prc/regseg.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ def affine_dipy(
flo_d = imio.getnii(fflo ,output='all')

Check failure on line 245 in niftypet/nimpa/prc/regseg.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] niftypet/nimpa/prc/regseg.py#L245

E203 whitespace before ','
Raw output
niftypet/nimpa/prc/regseg.py:245:33: E203 whitespace before ','

Check failure on line 245 in niftypet/nimpa/prc/regseg.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] niftypet/nimpa/prc/regseg.py#L245

E231 missing whitespace after ','
Raw output
niftypet/nimpa/prc/regseg.py:245:34: E231 missing whitespace after ','
flo_a = flo_d['affine']
newaff = np.linalg.lstsq(txaff, flo_a)[0]
splt = fflo.name.split('.nii')
fmodi = odir/(splt[0]+'_affine-modified.nii'+splt[1])
splt = os.path.basename(fflo).split('.nii')
fmodi = os.path.join(odir, splt[0]+'_affine-modified.nii'+splt[1])

imio.array2nii(
flo_d['im'],
Expand Down

0 comments on commit 48b228b

Please sign in to comment.