# Pb with PointDataToCellData with categorical data

**URL:** https://discourse.paraview.org/t/pb-with-pointdatatocelldata-with-categorical-data/11291
**Category:** ParaView Support
**Created:** [January 29, 2023, 1:39pm UTC](https://discourse.paraview.org/t/pb-with-pointdatatocelldata-with-categorical-data/11291 "2023-01-29T13:39:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Loic](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/e9c0ed/32.png) [@Loic](https://discourse.paraview.org/u/Loic)
#### Post date: [January 29, 2023, 1:39pm UTC](https://discourse.paraview.org/t/pb-with-pointdatatocelldata-with-categorical-data/11291/1 "2023-01-29T13:39:16Z")

</div>

Hi,

I’m trying to use the PointDataToCellData filter but it seems that this filter produces no output when I activate the “Categorical Data” option.  
Is there something special to take care off with that option ?

Here is a sample python script to demonstrate my issue :

```python
import paraview
from paraview.simple import *

# create a new 'Superquadric'
superquadric1 = Superquadric(registrationName='Superquadric1')

# create a new 'Python Calculator'
pythonCalculator1 = PythonCalculator(registrationName='PythonCalculator1', Input=superquadric1)
pythonCalculator1.Expression = '(points[:, 0] > 0).astype(int) + 2*(points[:, 1] > 0).astype(int)+4*(points[:, 2] > 0).astype(int)'
pythonCalculator1.ArrayName = 'domain'

# create a new 'Point Data to Cell Data'
pointDatatoCellData1 = PointDatatoCellData(registrationName='PointDatatoCellData1', Input=pythonCalculator1)
pointDatatoCellData1.ProcessAllArrays = 0
pointDatatoCellData1.PointDataArraytoprocess = ['domain']
pointDatatoCellData1.CategoricalData = 1

```

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [January 30, 2023, 6:54am UTC](https://discourse.paraview.org/t/pb-with-pointdatatocelldata-with-categorical-data/11291/2 "2023-01-30T06:54:45Z")

</div>

That definitely looks like an issue. I have been able to reproduce with a superquadir but no issue with a wavelet so I’m not sure of the cause.

Please open an issue on: [https://gitlab.kitware.com/paraview/paraview/-/issues](https://gitlab.kitware.com/paraview/paraview/-/issues)

---

<div class="post-metadata">

### Author: ![Loic](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/e9c0ed/32.png) [@Loic](https://discourse.paraview.org/u/Loic)
#### Post date: [January 30, 2023, 8:36am UTC](https://discourse.paraview.org/t/pb-with-pointdatatocelldata-with-categorical-data/11291/3 "2023-01-30T08:36:36Z")

</div>

I’ve opened the issue [#21754](https://gitlab.kitware.com/paraview/paraview/-/issues/21754).
