Skip to content

Commit

Permalink
BUG: Fix deprecation error in featureextractor
Browse files Browse the repository at this point in the history
After recent merging of voxelwise extraction, API to a calculate features has changed from `calculateFeatures` to `execute`, this was correctly changed in feature extractor for the calculation of firstorder and texture features, but not for shape features.
  • Loading branch information
JoostJM committed Jun 19, 2018
1 parent 1ec4fd6 commit da1fc16
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions radiomics/featureextractor.py
Expand Up @@ -407,8 +407,7 @@ def execute(self, imageFilepath, maskFilepath, label=None, voxelBased=False):
for feature in enabledFeatures:
shapeClass.enableFeatureByName(feature)

shapeClass.calculateFeatures()
for (featureName, featureValue) in six.iteritems(shapeClass.featureValues):
for (featureName, featureValue) in six.iteritems(shapeClass.execute()):
newFeatureName = 'original_shape_%s' % featureName
featureVector[newFeatureName] = featureValue

Expand Down

0 comments on commit da1fc16

Please sign in to comment.