# RenameArrays filter python call

**URL:** https://discourse.paraview.org/t/renamearrays-filter-python-call/12306
**Category:** ParaView Support
**Tags:** python
**Created:** [June 13, 2023, 11:32am UTC](https://discourse.paraview.org/t/renamearrays-filter-python-call/12306 "2023-06-13T11:32:31Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mezzerine](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mezzerine/32/11796_2.png) [@Mezzerine](https://discourse.paraview.org/u/Mezzerine)
#### Post date: [June 13, 2023, 11:32am UTC](https://discourse.paraview.org/t/renamearrays-filter-python-call/12306/1 "2023-06-13T11:32:31Z")

</div>

In Python 5.11 there is a RenameArray filter which is nice. If I open a python console it also recognizes this function. But I cannot find a description of the function. Based on help(RenameArrays) I figured I should use it something like this:

> > > out = RenameArrays(inputFilter, Velocity=‘Velocity\_old’)

which would then rename the dataArray ‘Velocity’ to ‘Velocity\_old’. But that doesn’t work, I get an error (An AttributeError, ‘Velocity does not exist’, and during the handling of that exception even two more exceptions occured…).

Also: with CellDataToPointData you can get dataArrays with the same name, but one as point data and one as cell data. How can you make the distinction?

---

<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: [June 13, 2023, 11:40am UTC](https://discourse.paraview.org/t/renamearrays-filter-python-call/12306/2 "2023-06-13T11:40:26Z")

</div>

Hi @Mezzerine

Just use the Python trace:

```auto
# create a new 'RenameArrays'
renameArrays1 = RenameArrays(registrationName='RenameArrays1', Input=wavelet1)

# Properties modified on renameArrays1
renameArrays1.PointArrays = ['RTData', 'Test']

```
