Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HNSCC data throwing index out of bounds error in getROIVoxel Label #22

Open
strixy16 opened this issue May 22, 2024 · 0 comments
Open

Comments

@strixy16
Copy link
Collaborator

Error below

Processing  HNSCC-01-0225 ...
labels: {'GTVp': 0}
Traceback (most recent call last):
  File "/cluster/home/t118840uhn/HNC_project/scripts/negControl_to_nifti/hnscc_negcontrol_to_nifti.py", line 180, in <module>
    main(imageDirPath, outputDir, imageFileListPath, segType, roiNames, negControlTypeList, crop, randomSeed)
  File "/cluster/home/t118840uhn/HNC_project/scripts/negControl_to_nifti/hnscc_negcontrol_to_nifti.py", line 147, in main
    segmentationLabel = getROIVoxelLabel(alignedROIImage)
  File "/cluster/home/t118840uhn/miniconda3/envs/readii/lib/python3.9/site-packages/readii/image_processing.py", line 308, in getROIVoxelLabel
    if np.all(roiVoxels == roiVoxels[0]):
IndexError: index 0 is out of bounds for axis 0 with size 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant