# Where to find the list of all time relevant fields in Python calculator

**URL:** https://discourse.paraview.org/t/where-to-find-the-list-of-all-time-relevant-fields-in-python-calculator/15797
**Category:** ParaView Support
**Created:** [November 27, 2024, 10:42am UTC](https://discourse.paraview.org/t/where-to-find-the-list-of-all-time-relevant-fields-in-python-calculator/15797 "2024-11-27T10:42:27Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ANON1](https://discourse.paraview.org/user_avatar/discourse.paraview.org/anon1/32/3919_2.png) [@ANON1](https://discourse.paraview.org/u/ANON1)
#### Post date: [November 27, 2024, 10:42am UTC](https://discourse.paraview.org/t/where-to-find-the-list-of-all-time-relevant-fields-in-python-calculator/15797/1 "2024-11-27T10:42:27Z")

</div>

Hello,

I checked the different ParaView documentations about the Python calculator field but noticed that some information is still missing. For example, in my experience, to access the current time, I can access that with `time_value`. Could you please point me where the list of all variables that can be used within Python Calculator?

Thank you

---

<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: [November 27, 2024, 10:46am UTC](https://discourse.paraview.org/t/where-to-find-the-list-of-all-time-relevant-fields-in-python-calculator/15797/2 "2024-11-27T10:46:36Z")

</div>

[https://www.paraview.org/paraview-docs/nightly/python/paraview.simple.PythonCalculator.html](https://www.paraview.org/paraview-docs/nightly/python/paraview.simple.PythonCalculator.html)

---

<div class="post-metadata">

### Author: ![ANON1](https://discourse.paraview.org/user_avatar/discourse.paraview.org/anon1/32/3919_2.png) [@ANON1](https://discourse.paraview.org/u/ANON1)
#### Post date: [November 27, 2024, 11:01am UTC](https://discourse.paraview.org/t/where-to-find-the-list-of-all-time-relevant-fields-in-python-calculator/15797/3 "2024-11-27T11:01:21Z")

</div>

Thank you for sharing the link. I find the following confusing:

> The Python expression evaluated during execution. Set of potentially available variables [inputs, points, t\_value, t\_index, FieldData, PointData, CellData] (i.e.: 👉 “Momentum: (%f, %f, f)” (XMOM[t\_index,0], YMOM[t\_index,0], ZMOM[t\_index,0]) 👈 ). Additional variables, using the fmt library’s syntax, are {timevalue}, and {timeindex}. These variables are always available, and their default values are 0, and 0 respectively.

It seems like it is referring to **Python Annotation** filter not python calculator. Is it possible to use python string formatting in Python Calculator expressions?

---

<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: [November 27, 2024, 12:08pm UTC](https://discourse.paraview.org/t/where-to-find-the-list-of-all-time-relevant-fields-in-python-calculator/15797/4 "2024-11-27T12:08:09Z")

</div>

The example may be specific to python annotation, but the variable are available all the same in the python calculator
