VUIIS / dax

Distributed Automation for XNAT
MIT License
25 stars 24 forks source link

processors_v3 error when no matching scan is present #376

Closed baxpr closed 2 years ago

baxpr commented 2 years ago

This session is missing a T1, so the running assessors shouldn't build (they are all for T1s). We're getting this error. Seems like there should be some way to handle this situation gracefully. This may be blocking builds on viable assessors as well, but I can't tell in this project.

Error building ASDREST session 233036 ``` 2022-05-23 12:11:07,888 - INFO - launcher - + Session 233036: building... 2022-05-23 12:11:07,888 - DEBUG - launcher - == Build modules (count:0) == 2022-05-23 12:11:07,889 - DEBUG - launcher - +SCAN: 901 2022-05-23 12:11:07,889 - DEBUG - launcher - * Module: dcm2niix 2022-05-23 12:11:07,889 - DEBUG - Module_dcm2niix - Has NIFTI 2022-05-23 12:11:07,889 - DEBUG - XnatUtils - _exec:GET:/data/projects/ASDREST/subjects/233036/experiments?format=csv&columns=xsiType,label,ID 2022-05-23 12:11:08,063 - DEBUG - XnatUtils - _exec:GET:/data/projects/ASDREST/subjects/233036/experiments?columns=ID,xnat:mrSessionData/meta/last_modified 2022-05-23 12:11:10,949 - DEBUG - XnatUtils - _exec:GET:/data/projects/ASDREST/subjects/233036/experiments?format=csv&columns=label,ID 2022-05-23 12:11:11,093 - DEBUG - launcher - == Build auto processors == 2022-05-23 12:11:11,094 - DEBUG - processor_parser - session is first, including pets 2022-05-23 12:11:11,094 - DEBUG - processors_v3 - session is first, including pets 2022-05-23 12:11:11,094 - CRITICAL - launcher - Caught exception building sessions 233036 2022-05-23 12:11:11,094 - CRITICAL - launcher - Exception class caught with message list index out of range 2022-05-23 12:11:11,095 - CRITICAL - launcher - Traceback (most recent call last): File "/gpfs52/data/mcr/centos7/venv/dax/lib/python3.8/site-packages/dax/launcher.py", line 590, in build_project self.build_session( File "/gpfs52/data/mcr/centos7/venv/dax/lib/python3.8/site-packages/dax/launcher.py", line 800, in build_session self.build_auto_processors(csess, auto_proc_list, sessions) File "/gpfs52/data/mcr/centos7/venv/dax/lib/python3.8/site-packages/dax/launcher.py", line 896, in build_auto_processors mapping = auto_proc.parse_session(csess, mrs, pets) File "/gpfs52/data/mcr/centos7/venv/dax/lib/python3.8/site-packages/dax/processors_v3.py", line 708, in parse_session artefacts_by_input = self._map_artefacts_to_inputs(csess, pets) File "/gpfs52/data/mcr/centos7/venv/dax/lib/python3.8/site-packages/dax/processors_v3.py", line 1144, in _map_artefacts_to_inputs artefacts_by_input[i] = [sorted_info[idx_multi-1][0]] IndexError: list index out of range ```