# SegmentStatistics error

**URL:** https://discourse.slicer.org/t/segmentstatistics-error/24803
**Category:** Support
**Created:** [August 17, 2022, 10:27am UTC](https://discourse.slicer.org/t/segmentstatistics-error/24803 "2022-08-17T10:27:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Jorge\_Wagner\_Esteves](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jorge_wagner_esteves/32/13792_2.png) [@Jorge\_Wagner\_Esteves](https://discourse.slicer.org/u/Jorge_Wagner_Esteves)
#### Post date: [August 17, 2022, 10:27am UTC](https://discourse.slicer.org/t/segmentstatistics-error/24803/1 "2022-08-17T10:27:28Z")

</div>

Hi there,

I am starting with 3D Slicer, using version 5.0.2. I did a segmentation on CT images and tried to process it using SegmentStatistics to get organ volumes.

I am running 3D Slicer on an AMD Ryzen 7 3700X with 32 GB RAM and an RTX 2700 Super GPU under Windows 11.

I got the following error. Does someone get the same error: Any clue about what’s happening?

Traceback (most recent call last):  
File “C:\Users\1090\AppData\Local\NA-MIC\Slicer 5.0.2\bin\Python\slicer\util.py”, line 2830, in tryWithErrorDisplay  
yield  
File “C:\Users\1090\AppData\Local\NA-MIC\Slicer 5.0.2\lib\Slicer-5.0\qt-scripted-modules\SegmentStatistics.py”, line 206, in onApply  
self.logic.computeStatistics()  
File “C:\Users\1090\AppData\Local\NA-MIC\Slicer 5.0.2\lib\Slicer-5.0\qt-scripted-modules\SegmentStatistics.py”, line 455, in computeStatistics  
self.updateStatisticsForSegment(segmentID)  
File “C:\Users\1090\AppData\Local\NA-MIC\Slicer 5.0.2\lib\Slicer-5.0\qt-scripted-modules\SegmentStatistics.py”, line 484, in updateStatisticsForSegment  
stats = plugin.computeStatistics(segmentID)  
File “C:\Users\1090\AppData\Local\NA-MIC\Slicer 5.0.2\NA-MIC\Extensions-30822\PET-IndiC\lib\Slicer-5.0\qt-scripted-modules\PETVolumeSegmentStatisticsPlugin\PETVolumeSegmentStatisticsPlugin.py”, line 79, in computeStatistics  
resultMap[feature]=float(newResult)  
ValueError: could not convert string to float: ‘’

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [August 17, 2022, 11:09am UTC](https://discourse.slicer.org/t/segmentstatistics-error/24803/2 "2022-08-17T11:09:57Z")

</div>

Most probably the PET-IndiC extension has not been updated to be fully compatible with Slicer-5, or you might use it in some unexpected way or type of input data.

Did you use the GUI of a module or you used the module logic via Python scripting?  
Which module did you use?  
What is your overall goal?

---

<div class="post-metadata">

### Author: ![Jorge\_Wagner\_Esteves](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jorge_wagner_esteves/32/13792_2.png) [@Jorge\_Wagner\_Esteves](https://discourse.slicer.org/u/Jorge_Wagner_Esteves)
#### Post date: [August 17, 2022, 11:27am UTC](https://discourse.slicer.org/t/segmentstatistics-error/24803/3 "2022-08-17T11:27:33Z")

</div>

You are right!!!  
I just removed the PET-IndiC extension that appeared as legacy, and the problem vanished!

Tanks
