Skip to content

Commit 523f7bf

Browse files
author
M.Notter
committed
Corrects flake8 issues
1 parent c615408 commit 523f7bf

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

atlasreader/atlasreader.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -901,9 +901,7 @@ def create_output(
901901

902902
# get template image for plotting cluster maps
903903
bgimg = nb.load(
904-
resource_filename(
905-
"atlasreader", "data/templates/MNI152_T1_1mm_brain.nii.gz"
906-
)
904+
resource_filename("atlasreader", "data/templates/MNI152_T1_1mm_brain.nii.gz")
907905
)
908906

909907
# plot clusters

atlasreader/cli.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,7 @@ def queryatlas_main():
208208
for atlas in check_atlases(opts.atlas):
209209
label = read_atlas_peak(atlas, opts.coordinate, opts.prob_thresh)
210210
if isinstance(label, list):
211-
label = "\n{}".format(" " * 26).join(
212-
["{:>2}% {}".format(*e) for e in label]
213-
)
211+
label = "\n{}".format(" " * 26).join(["{:>2}% {}".format(*e) for e in label])
214212
print(f"{atlas.atlas:<25} {label}")
215213

216214

0 commit comments

Comments
 (0)