# Python - Editing Feature Size Local Threshold

**URL:** <https://discourse.slicer.org/t/python-editing-feature-size-local-threshold/12393>\
**Category:** Development\
**Created:** [July 6, 2020, 1:15pm UTC](https://discourse.slicer.org/t/python-editing-feature-size-local-threshold/12393 "2020-07-06T13:15:34Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![vertebra](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/vertebra/32/7475_2.png) [@vertebra](https://discourse.slicer.org/u/vertebra)\
**Post date:** [July 8, 2020, 1:23pm UTC](https://discourse.slicer.org/t/python-editing-feature-size-local-threshold/12393/22 "2020-07-08T13:23:21Z")

</div>

This is the link to everything:

> **[kbehlmirusmed/VertebraSeg](https://github.com/kbehlmirusmed/VertebraSeg)**
>
> Contribute to kbehlmirusmed/VertebraSeg development by creating an account on GitHub.

Thank you so much!

---

<div class="post-metadata">

**Author:** ![vertebra](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/vertebra/32/7475_2.png) [@vertebra](https://discourse.slicer.org/u/vertebra)\
**Post date:** [July 8, 2020, 2:55pm UTC](https://discourse.slicer.org/t/python-editing-feature-size-local-threshold/12393/23 "2020-07-08T14:55:07Z")

</div>

We figured it out @lassoan!

---

<div class="post-metadata">

**Author:** ![vertebra](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/vertebra/32/7475_2.png) [@vertebra](https://discourse.slicer.org/u/vertebra)\
**Post date:** [July 8, 2020, 3:21pm UTC](https://discourse.slicer.org/t/python-editing-feature-size-local-threshold/12393/24 "2020-07-08T15:21:31Z")

</div>

When we use effect.setParameter(“Minimum Threshold”, 265) and then:

print(slicer.mrmlScene.GetFirstNodeByClass(“vtkMRMLSegmentEditorNode”))

It says that the parameter is still set at the default of 115 (Local Threshold.MinimumThreshold:115)

Are we missing a line of code @lassoan?

---

<div class="post-metadata">

**Author:** ![vertebrae](https://avatars.discourse-cdn.com/v4/letter/v/dec6dc/32.png) [@vertebrae](https://discourse.slicer.org/u/vertebrae)\
**Post date:** [July 8, 2020, 5:01pm UTC](https://discourse.slicer.org/t/python-editing-feature-size-local-threshold/12393/25 "2020-07-08T17:01:20Z")

</div>

We have figured it out. Thanks!

---

<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:** [July 9, 2020, 12:59am UTC](https://discourse.slicer.org/t/python-editing-feature-size-local-threshold/12393/26 "2020-07-09T00:59:51Z")

</div>

Please always write here what was the solution because it will help others who will find this page when they have a similar question.

---

<div class="post-metadata">

**Author:** ![vertebra](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/vertebra/32/7475_2.png) [@vertebra](https://discourse.slicer.org/u/vertebra)\
**Post date:** [July 9, 2020, 12:30pm UTC](https://discourse.slicer.org/t/python-editing-feature-size-local-threshold/12393/27 "2020-07-09T12:30:03Z")

</div>

The solution is you write `effect.setParameter("MinimumThreshold", "265")` - no SPACE

[Previous page](https://discourse.slicer.org/t/python-editing-feature-size-local-threshold/12393.md?page=1)
