# python example for point set not working with itk 5.0.1

**URL:** https://discourse.itk.org/t/python-example-for-point-set-not-working-with-itk-5-0-1/2183
**Category:** Beginner Questions
**Tags:** pointset, example, bug, python
**Created:** [August 21, 2019, 12:29pm UTC](https://discourse.itk.org/t/python-example-for-point-set-not-working-with-itk-5-0-1/2183 "2019-08-21T12:29:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![asertyuio](https://discourse.itk.org/letter_avatar_proxy/v4/letter/a/e68b1a/32.png) [@asertyuio](https://discourse.itk.org/u/asertyuio)
#### Post date: [August 21, 2019, 12:29pm UTC](https://discourse.itk.org/t/python-example-for-point-set-not-working-with-itk-5-0-1/2183/1 "2019-08-21T12:29:07Z")

</div>

I’m trying to create a point set and I followed the python example [here](https://itk.org/ITKExamples/src/Core/Common/CreateAPointSet/Documentation.html), but there is some “type errors” :

```auto
itkTemplate.TemplateTypeError: itk.PointSet is not wrapped for input type `itk.F, int, itk.DefaultStaticMeshTraits[itk.F,2] 

```

I manage to get a working piece of code for creating a meshtrait:

```auto
PixelType = itk.F
Dimension = 2

MeshTraits = itk.DefaultStaticMeshTraits[PixelType, Dimension, Dimension]

PointSetType = itk.PointSet[PixelType, Dimension, MeshTraits]

```

I changed the MeshTraits grid to:

```auto
MeshTraits = itk.DefaultStaticMeshTraits[PixelType, Dimension]
PointSetType = itk.PointSet[PixelType, Dimension]

```

I guess the documentation is wrong on this point compared to what is compiled.

Am I doing right ?

---

<div class="post-metadata">

### Author: ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)
#### Post date: [August 21, 2019, 4:29pm UTC](https://discourse.itk.org/t/python-example-for-point-set-not-working-with-itk-5-0-1/2183/2 "2019-08-21T16:29:36Z")

</div>

> [@asertyuio](#):
>
> I guess the documentation is wrong on this point compared to what is compiled.

Yes, the point set wrapping was simplified for ITK 5, but the website has not yet been updated.

> [@asertyuio](#):
>
> ```auto
> 
> ```
> 
> I changed the MeshTraits grid to:
> 
> ```auto
> MeshTraits = itk.DefaultStaticMeshTraits[PixelType, Dimension]
> PointSetType = itk.PointSet[PixelType, Dimension]
> 
> ```

Correct!

This has been updated in the repository:

> <https://github.com/InsightSoftwareConsortium/ITKSphinxExamples/blob/master/src/Core/Common/CreateAPointSet/Code.py>

Thanks for the report – we will update the website next week.
