# array type option for Python Calculator

**URL:** https://discourse.paraview.org/t/array-type-option-for-python-calculator/10002
**Category:** Feature Requests
**Created:** [July 13, 2022, 1:30pm UTC](https://discourse.paraview.org/t/array-type-option-for-python-calculator/10002 "2022-07-13T13:30:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Andy\_Bauer](https://discourse.paraview.org/user_avatar/discourse.paraview.org/andy_bauer/32/5442_2.png) [@Andy\_Bauer](https://discourse.paraview.org/u/Andy_Bauer)
#### Post date: [July 13, 2022, 1:30pm UTC](https://discourse.paraview.org/t/array-type-option-for-python-calculator/10002/1 "2022-07-13T13:30:28Z")

</div>

The `Calculator` filter has a `Result Array Type` advanced option. This is pretty nice when doing certain operations. Would it be possible to add this for the `Python Calculator`? Seems to me like it wouldn’t be too hard but with numpy and all of the functionality of the `Python Calculator` there may be some gotcha I’m not seeing.

---

<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: [July 13, 2022, 1:30pm UTC](https://discourse.paraview.org/t/array-type-option-for-python-calculator/10002/2 "2022-07-13T13:30:55Z")

</div>

Most definitely. This should be simple to implement.

---

<div class="post-metadata">

### Author: ![Andy\_Bauer](https://discourse.paraview.org/user_avatar/discourse.paraview.org/andy_bauer/32/5442_2.png) [@Andy\_Bauer](https://discourse.paraview.org/u/Andy_Bauer)
#### Post date: [July 13, 2022, 2:11pm UTC](https://discourse.paraview.org/t/array-type-option-for-python-calculator/10002/3 "2022-07-13T14:11:38Z")

</div>

Things usually seem _easy_ to implement when I’m not tasked with implementing them 🙂

I created an issue at [https://gitlab.kitware.com/paraview/paraview/-/issues/21468](https://gitlab.kitware.com/paraview/paraview/-/issues/21468).

Thanks,  
Andy
