When a description lists several potential sources in the rois dictionary, but only uses one of them, importMeshes fails in line 452 trying to access roiNames at index i.
The error occurs because the assumption that roiSources and roiNames contain the same number of elements is not guaranteed by utilsJson.parseRoiNames().
I ran into this problem for automatically generated descriptions and can fix it on my side.
In my case, there is always a sourceIndex of 0, but I wonder what happens if 0 is skipped?
I wasn't sure, if the issue should be addressed at all, and if so, if in importMeshes or in utilsJson.
When a description lists several potential sources in the
rois
dictionary, but only uses one of them,importMeshes
fails in line 452 trying to accessroiNames
at indexi
.Example:
The error occurs because the assumption that
roiSources
androiNames
contain the same number of elements is not guaranteed byutilsJson.parseRoiNames()
.I ran into this problem for automatically generated descriptions and can fix it on my side.
In my case, there is always a
sourceIndex
of 0, but I wonder what happens if 0 is skipped?I wasn't sure, if the issue should be addressed at all, and if so, if in importMeshes or in utilsJson.