[REF] Function create_scans_dict
from bids_utils
is highly inefficient, may be replaceable
#1326
Open
1 of 2 tasks
Labels
The function
create_scans_dict
used for AIBL and OASIS converters :clinica/clinica/iotools/bids_utils.py
Lines 468 to 476 in 6f81685
can be very much improved.
ses_dict
is the whole sessions dict used elsewhere to write sessions.tsv but is only used in this function to get sessions numbers :clinica/clinica/iotools/bids_utils.py
Lines 516 to 519 in 6f81685
In general, this function lasts 100+ lines when it is supposed to produce a simple scans dict indicating the files found in a category folder (ex : anat). It is probable that it can be replaced by another function already existing.
OASIS
AIBL
The text was updated successfully, but these errors were encountered: