# Bin width in Pyradiomics 

**URL:** <https://discourse.slicer.org/t/bin-width-in-pyradiomics/3552>\
**Category:** Support\
**Tags:** radiomics\
**Created:** [July 21, 2018, 2:17pm UTC](https://discourse.slicer.org/t/bin-width-in-pyradiomics/3552 "2018-07-21T14:17:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mnchyy](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mnchyy/32/81406_2.png) [@mnchyy](https://discourse.slicer.org/u/mnchyy)\
**Post date:** [July 21, 2018, 2:17pm UTC](https://discourse.slicer.org/t/bin-width-in-pyradiomics/3552/1 "2018-07-21T14:17:28Z")

</div>

Hello  
I’m working on Pyradiomics in 3D Slicer and I found that I can only adjust bin width up to only 100. Is there any possible way to change the bin width more than 100?

many thanks

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [July 23, 2018, 11:05pm UTC](https://discourse.slicer.org/t/bin-width-in-pyradiomics/3552/2 "2018-07-23T23:05:13Z")

</div>

That’s a kind of arbitrary hard coded upper limit - if you want to change it you can edit this line:

> <https://github.com/Radiomics/SlicerRadiomics/blob/master/SlicerRadiomics/SlicerRadiomics.py#L276>

(you need to find this file in the extension installation, edit it, and restart Slicer).

But a better approach would be to use the latest nightly preview of Slicer and the corresponding SlicerRadiomics extension and from there you can specify your own parameter file with whatever settings you want.as described here:

[https://pyradiomics.readthedocs.io/en/latest/customization.html#parameter-file](https://pyradiomics.readthedocs.io/en/latest/customization.html#parameter-file)

If you want to suggest a better default min and max for bin width, you could file a feature request here [https://github.com/Radiomics/SlicerRadiomics/issues](https://github.com/Radiomics/SlicerRadiomics/issues)
