# ITK python version

**URL:** https://discourse.itk.org/t/itk-python-version/6147
**Category:** Uncategorized
**Created:** [August 15, 2023, 3:28am UTC](https://discourse.itk.org/t/itk-python-version/6147 "2023-08-15T03:28:38Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![guo7212](https://discourse.itk.org/letter_avatar_proxy/v4/letter/g/7ab992/32.png) [@guo7212](https://discourse.itk.org/u/guo7212)
#### Post date: [August 15, 2023, 3:28am UTC](https://discourse.itk.org/t/itk-python-version/6147/1 "2023-08-15T03:28:39Z")

</div>

Hi, everyone.  
In ITK python version, there is a enum ChoiceMethod\_KEEP in class itkMergeLabelMapFilterEnums in the file itkMergeLabelMapFilterPython.py.  
In my code

```auto
mergeLabelMapFilter = itk.MergeLabelMapFilter.New(labelMap1, 
                                                      labelMap2, 
                                                      labelMap3,
                                                      Method=???)

```

I don’t know how to set ??? in Method.

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [August 15, 2023, 1:56pm UTC](https://discourse.itk.org/t/itk-python-version/6147/2 "2023-08-15T13:56:59Z")

</div>

Take a look at the [migration guide](https://github.com/InsightSoftwareConsortium/ITK/blob/master/Documentation/ITK5MigrationGuide.md#strongly-typed-enumerations). Try `Method=itk.itkMergeLabelMapFilterEnums.ChoiceMethod_KEEP`.

---

<div class="post-metadata">

### Author: ![guo7212](https://discourse.itk.org/letter_avatar_proxy/v4/letter/g/7ab992/32.png) [@guo7212](https://discourse.itk.org/u/guo7212)
#### Post date: [August 15, 2023, 2:12pm UTC](https://discourse.itk.org/t/itk-python-version/6147/3 "2023-08-15T14:12:43Z")

</div>

Thanks very much. 😃
