Heudiconv Assertion Error Found

Hi all,

I’m trying to do DICOM to BIDS conversion through heudiconv and got this assertion error

INFO: [Node] Finished “convert”, elapsed time 371.500961s.
Traceback (most recent call last):
File “/opt/miniconda-py39_4.12.0/bin/heudiconv”, line 8, in
File “/src/heudiconv/heudiconv/cli/run.py”, line 30, in main
File “/src/heudiconv/heudiconv/main.py”, line 479, in workflow
File “/src/heudiconv/heudiconv/convert.py”, line 259, in prep_conversion
File “/src/heudiconv/heudiconv/convert.py”, line 637, in convert
save_scans_key(item, bids_outfiles)
File “/src/heudiconv/heudiconv/bids.py”, line 483, in save_scans_key
assert bids_files, “we do expect some files since it was called”
AssertionError: we do expect some files since it was called
Finished SOAR_Travel_01 20240523_Utoledo_13

The folder structure is as follows:

-d /fs/ess/PAS2302/Subbi/SOAR/SOAR_Travel_Phantom/{subject}/SCANS//DICOM/ \

I checked the folder each of the subfolders that are not converting have DICOM files in them.

Also for heudiconv what does:

  1. -g grouping flag do in the CLI
  2. Is there a way to extract these heudiconv errors into a csv file for subjects that crash and don’t fully complete?

Using heudiconv_1.1.1.sif



Subbi Madhavan