Skip to content

Commit

Permalink
removed 3.8 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Jul 28, 2022
1 parent f8daecf commit 61aee20
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pydra/tasks/dcm2niix/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ def dcm2niix_out_file(out_dir, filename, echo, suffix, compress):

# Check to see if multiple echos exist in the DICOM dataset
if not out_file.exists():
if echoes := [
echoes = [
str(p)
for p in out_file.parent.iterdir()
if p.stem.startswith(filename + "_e")
]:
]
if echoes:
raise ValueError(
"DICOM dataset contains multiple echos, please specify which "
"echo you want via the 'echo' input:\n"
Expand Down

0 comments on commit 61aee20

Please sign in to comment.