You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Suddenly I can't run the feature extractor anymore (worked until a few weeks ago). Error message it get:
Traceback (most recent call last):
File "<ipython-input-58-89ccd738bd53>", line 1, in <module>
features = extractor.execute(img, mask, label=255)
File "C:\Anaconda3\envs\pp\lib\site-packages\radiomics\featureextractor.py", line 327, in execute
featureVector.update(self.computeFeatures(inputImage, inputMask, imageTypeName, **inputKwargs))
File "C:\Anaconda3\envs\pp\lib\site-packages\radiomics\featureextractor.py", line 514, in computeFeatures
for (featureName, featureValue) in six.iteritems(featureClass.execute()):
File "C:\Anaconda3\envs\pp\lib\site-packages\radiomics\base.py", line 185, in execute
self._calculateSegment()
File "C:\Anaconda3\envs\pp\lib\site-packages\radiomics\base.py", line 222, in _calculateSegment
for success, featureName, featureValue in self._calculateFeatures():
File "C:\Anaconda3\envs\pp\lib\site-packages\radiomics\base.py", line 229, in _calculateFeatures
self._initCalculation(voxelCoordinates)
File "C:\Anaconda3\envs\pp\lib\site-packages\radiomics\glcm.py", line 111, in _initCalculation
self.P_glcm = self._calculateMatrix(voxelCoordinates)
File "C:\Anaconda3\envs\pp\lib\site-packages\radiomics\glcm.py", line 148, in _calculateMatrix
P_glcm = numpy.delete(P_glcm, emptyGrayLevels - 1, 1)
File "<__array_function__ internals>", line 6, in delete
File "C:\Anaconda3\envs\pp\lib\site-packages\numpy\lib\function_base.py", line 4406, in delete
keep[obj,] = False
IndexError: arrays used as indices must be of integer (or boolean) type
mluerig
changed the title
[BUG] feature extractor stopped working
[BUG] feature extractor stopped working (arrays used as indices must be of integer (or boolean) type)
Jun 30, 2020
Describe the bug
Suddenly I can't run the feature extractor anymore (worked until a few weeks ago). Error message it get:
PyRadiomics configuration
setting:
binWidth: 1
padDistance: 0
force2D: True
To Reproduce
Expected behavior
A clear and concise description of what you expected to happen.
Version (please complete the following information):
The text was updated successfully, but these errors were encountered: