Commit 158647d0 authored by Alessia Marcolini's avatar Alessia Marcolini
Browse files

Return superclass function return value

parent 7296d372
...@@ -9,19 +9,19 @@ class MyRadiomicsShape(MyRadiomicsFeaturesBase): ...@@ -9,19 +9,19 @@ class MyRadiomicsShape(MyRadiomicsFeaturesBase):
super().__init__(inputImage, inputMask, **kwargs) super().__init__(inputImage, inputMask, **kwargs)
def _initVoxelBasedCalculation(self): def _initVoxelBasedCalculation(self):
RadiomicsShape._initVoxelBasedCalculation(self) return RadiomicsShape._initVoxelBasedCalculation(self)
def _initSegmentBasedCalculation(self): def _initSegmentBasedCalculation(self):
RadiomicsShape._initSegmentBasedCalculation(self) return RadiomicsShape._initSegmentBasedCalculation(self)
def _calculateSurfaceArea(self): def _calculateSurfaceArea(self):
self.SurfaceArea = RadiomicsShape._calculateSurfaceArea(self) return RadiomicsShape._calculateSurfaceArea(self)
def calculateDiameters(self): def calculateDiameters(self):
RadiomicsShape.calculateDiameters(self) return RadiomicsShape.calculateDiameters(self)
def _interpolate(self, grid, p1, p2): def _interpolate(self, grid, p1, p2):
RadiomicsShape._interpolate(self, grid, p1, p2) return RadiomicsShape._interpolate(self, grid, p1, p2)
def getCompactness2FeatureValue(self): def getCompactness2FeatureValue(self):
r""" r"""
...@@ -43,7 +43,7 @@ class MyRadiomicsShape(MyRadiomicsFeaturesBase): ...@@ -43,7 +43,7 @@ class MyRadiomicsShape(MyRadiomicsFeaturesBase):
specified, including this feature). To include this feature in the extraction, specify it by name in the enabled features. specified, including this feature). To include this feature in the extraction, specify it by name in the enabled features.
""" """
if self.SurfaceArea is None: if self.SurfaceArea is None:
self._calculateSurfaceArea() self.SurfaceArea = self._calculateSurfaceArea()
return (36.0 * numpy.pi) * (self.Volume ** 2.0) / (self.SurfaceArea ** 3.0) return (36.0 * numpy.pi) * (self.Volume ** 2.0) / (self.SurfaceArea ** 3.0)
def getEccentricityFeatureValue(self): def getEccentricityFeatureValue(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment