# WarpByVector: cannot get data from input object in a python script

**URL:** https://discourse.paraview.org/t/warpbyvector-cannot-get-data-from-input-object-in-a-python-script/14740
**Category:** ParaView Support
**Created:** [May 30, 2024, 8:19am UTC](https://discourse.paraview.org/t/warpbyvector-cannot-get-data-from-input-object-in-a-python-script/14740 "2024-05-30T08:19:19Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Trophime](https://discourse.paraview.org/user_avatar/discourse.paraview.org/trophime/32/966_2.png) [@Trophime](https://discourse.paraview.org/u/Trophime)
#### Post date: [May 30, 2024, 8:19am UTC](https://discourse.paraview.org/t/warpbyvector-cannot-get-data-from-input-object-in-a-python-script/14740/1 "2024-05-30T08:19:19Z")

</div>

Hi,  
I’m trying to automate some postprocessing.  
I would like to generate view of fields on a deformed geometry  
I’ve tried something like that:

warpByVector1 = WarpByVector(Input=input)  
warpByVector1.Vectors = [“POINTS”, “elasticity.displacement”]  
warpByVector1.ScaleFactor = factor  
warpByVector1.UpdatePipeline()

The trouble is that, no PointData nor CellData are attached to warpObject1:

warpByVector1.PointData.keys() returns an empty list whereas input.PointData.keys() is not empty.

I must miss something.  
Any hints will be great

Best

---

<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: [May 30, 2024, 11:35am UTC](https://discourse.paraview.org/t/warpbyvector-cannot-get-data-from-input-object-in-a-python-script/14740/2 "2024-05-30T11:35:51Z")

</div>

Please share your data

---

<div class="post-metadata">

### Author: ![Trophime](https://discourse.paraview.org/user_avatar/discourse.paraview.org/trophime/32/966_2.png) [@Trophime](https://discourse.paraview.org/u/Trophime)
#### Post date: [May 30, 2024, 11:56am UTC](https://discourse.paraview.org/t/warpbyvector-cannot-get-data-from-input-object-in-a-python-script/14740/3 "2024-05-30T11:56:54Z")

</div>

[testAxi.pvsm](https://discourse.paraview.org/uploads/short-url/daR9WWGHhyLMEvssh61muKdQhG6.pvsm) (206.5 KB)

The original dataset is an Ensight Gold case.  
I can sent you the original dataset if needed.

Would you need the python script that automates the post-processing?

---

<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: [May 30, 2024, 11:58am UTC](https://discourse.paraview.org/t/warpbyvector-cannot-get-data-from-input-object-in-a-python-script/14740/4 "2024-05-30T11:58:33Z")

</div>

> [@Trophime](#):
>
> The original dataset is an Ensight Gold case.

I’ll need this too.

> Would you need the python script that automates the post-processing?

I need just the needed information to reproduce the issue

---

<div class="post-metadata">

### Author: ![Trophime](https://discourse.paraview.org/user_avatar/discourse.paraview.org/trophime/32/966_2.png) [@Trophime](https://discourse.paraview.org/u/Trophime)
#### Post date: [May 30, 2024, 12:05pm UTC](https://discourse.paraview.org/t/warpbyvector-cannot-get-data-from-input-object-in-a-python-script/14740/5 "2024-05-30T12:05:00Z")

</div>

You shall be able to download an tgz with this link [CNRS CRIC](https://nextcloud.grenoble.cnrs.fr/s/zLmN836zoWiom2w)

PS: I use pv 5.11 on debian Bookworm

---

<div class="post-metadata">

### Author: ![Kenneth\_Moreland](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kenneth_moreland/32/15033_2.png) [@Kenneth\_Moreland](https://discourse.paraview.org/u/Kenneth_Moreland)
#### Post date: [June 3, 2024, 1:02pm UTC](https://discourse.paraview.org/t/warpbyvector-cannot-get-data-from-input-object-in-a-python-script/14740/6 "2024-06-03T13:02:22Z")

</div>

In your script, you have

```py
warpByVector1.Vectors = ['POINTS', 'elasticity.displacement']

```

However, your data has no field named `elasticity.displacement`. I think you mean this:

```py
warpByVector1.Vectors = ['POINTS', 'cfpdes.elastic.displacement']

```

With a proper vector field to warp by, the operation succeeds and I see the keys to the `PointData` object that I would expect.

---

<div class="post-metadata">

### Author: ![Trophime](https://discourse.paraview.org/user_avatar/discourse.paraview.org/trophime/32/966_2.png) [@Trophime](https://discourse.paraview.org/u/Trophime)
#### Post date: [June 5, 2024, 2:45pm UTC](https://discourse.paraview.org/t/warpbyvector-cannot-get-data-from-input-object-in-a-python-script/14740/7 "2024-06-05T14:45:18Z")

</div>

My bad. Thanks. Sorry for the trouble.
