Skip to content

cubids purge IndexError: list index out of range #461

@tien-tong

Description

@tien-tong

Summary

Running this portion of the example walkthrough

cubids purge BIDS_Dataset_DataLad no_ped.txt --use-datalad

resulted in

Traceback (most recent call last):
  File "/gpfs/fs001/cbica/projects/pennlinc_rbc/miniforge3/bin/cubids", line 8, in <module>
    sys.exit(_main())
             ^^^^^^^
  File "/gpfs/fs001/cbica/projects/pennlinc_rbc/software/CuBIDS/cubids/cli.py", line 1076, in _main
    options.func(**args)
  File "/gpfs/fs001/cbica/projects/pennlinc_rbc/software/CuBIDS/cubids/workflows.py", line 487, in purge
    bod.purge(str(scans))
  File "/gpfs/fs001/cbica/projects/pennlinc_rbc/software/CuBIDS/cubids/cubids.py", line 852, in purge
    scans.append(self.path + "/" + str(row[0]))
                                       ~~~^^^
IndexError: list index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions