Skip to content

Commit

Permalink
fixed bug with the template for standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
pjmark committed Nov 24, 2023
1 parent 17424e9 commit 2c52c2d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions amypet/backend_centiloid.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,14 @@ def run(fpets, fmris, Cnt, tracer='pib', flip_pet=None, bias_corr=True, cmass_co

spm_path = Path(spm12.spm_dir()) # _eng <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

out = {} # output dictionary
tmpl_avg = spm_path / 'canonical' / 'avg152T1.nii' # template path
# > output dictionary
out = {}

Check failure on line 204 in amypet/backend_centiloid.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] amypet/backend_centiloid.py#L204

W291 trailing whitespace
Raw output
amypet/backend_centiloid.py:204:13: W291 trailing whitespace

# > MNI template path
if not standalone:

Check failure on line 207 in amypet/backend_centiloid.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] amypet/backend_centiloid.py#L207

W291 trailing whitespace
Raw output
amypet/backend_centiloid.py:207:23: W291 trailing whitespace
tmpl_avg = spm_path/'canonical'/'avg152T1.nii'
else:
tmpl_avg = spm12.standalone_path().parent/'spm12_mcr'/'spm12'/'spm12'/'canonical'/'avg152T1.nii'

Check failure on line 210 in amypet/backend_centiloid.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] amypet/backend_centiloid.py#L210

E501 line too long (104 > 99 characters)
Raw output
amypet/backend_centiloid.py:210:100: E501 line too long (104 > 99 characters)

pet_mr_list, flips = sort_input(fpets, fmris, flip_pet=None)

Expand Down

0 comments on commit 2c52c2d

Please sign in to comment.