File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -1725,7 +1725,6 @@ def _main(args):
1725
1725
# Load heuristic -- better do it asap to make sure it loads correctly
1726
1726
#
1727
1727
heuristic = load_heuristic (os .path .realpath (args .heuristic_file ))
1728
-
1729
1728
# TODO: Move into a function!
1730
1729
study_sessions = get_study_sessions (
1731
1730
dicom_dir_template , files_opt ,
Original file line number Diff line number Diff line change @@ -560,8 +560,7 @@ def infotoids(seqinfos, outdir):
560
560
# e.g. {date}
561
561
session_ = session_ .format (** s ._asdict ())
562
562
ses_markers .append (session_ )
563
-
564
- ses_markers = filter (bool , ses_markers ) # only present ones
563
+ ses_markers = list (filter (bool , ses_markers )) # only present ones
565
564
session = None
566
565
if ses_markers :
567
566
# we have a session or possibly more than one even
@@ -628,7 +627,6 @@ def sanitize_str(value):
628
627
def parse_dbic_protocol_name (protocol_name ):
629
628
"""Parse protocol name according to our convention with minimal set of fixups
630
629
"""
631
-
632
630
# Since Yarik didn't know better place to put it in, but could migrate outside
633
631
# at some point
634
632
protocol_name = protocol_name .replace ("anat_T1w" , "anat-T1w" )
You can’t perform that action at this time.
0 commit comments