# Is it normal Python trace doesn't record some operation?

**URL:** https://discourse.paraview.org/t/is-it-normal-python-trace-doesnt-record-some-operation/9477
**Category:** ParaView Support
**Tags:** python
**Created:** [April 20, 2022, 2:16pm UTC](https://discourse.paraview.org/t/is-it-normal-python-trace-doesnt-record-some-operation/9477 "2022-04-20T14:16:03Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Chenxing\_Li](https://discourse.paraview.org/user_avatar/discourse.paraview.org/chenxing_li/32/9058_2.png) [@Chenxing\_Li](https://discourse.paraview.org/u/Chenxing_Li)
#### Post date: [April 20, 2022, 2:16pm UTC](https://discourse.paraview.org/t/is-it-normal-python-trace-doesnt-record-some-operation/9477/1 "2022-04-20T14:16:03Z")

</div>

I can’t trace some parameter changes in StreamTracer Filter, when I change the center of Point Source.  
I feel a little weird. Is a bug or some founction tracer still in development?

---

<div class="post-metadata">

### Author: ![theodorebaltis](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/e480ec/32.png) [@theodorebaltis](https://discourse.paraview.org/u/theodorebaltis)
#### Post date: [April 20, 2022, 2:24pm UTC](https://discourse.paraview.org/t/is-it-normal-python-trace-doesnt-record-some-operation/9477/2 "2022-04-20T14:24:45Z")

</div>

Hey, welcome @Chenxing_Li

In my experience I’ve found there to be some operations that the Python trace doesn’t capture, and by extension the Python-based state files (I believe they just use the trace function).

I’m not sure if there is active development on the tracing capabilities, but I would certainly hope so.  
(Hey developers! 😉)  
The lack of parity between Python (.py) and XML (.pvsm) state files can be pretty frustrating, in my opinion.

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [April 20, 2022, 3:22pm UTC](https://discourse.paraview.org/t/is-it-normal-python-trace-doesnt-record-some-operation/9477/3 "2022-04-20T15:22:09Z")

</div>

> [@theodorebaltis](#):
>
> The lack of parity between Python (.py) and XML (.pvsm) state files can be pretty frustrating, in my opinion.

Python tracing and state files rely on inserting code that tells what code should be generated. As ParaView is a large application, there are unfortunately some gaps in tracing completeness. Over the years, these gaps have decreased as we make sure to add Python tracing code as new code is added to ParaView. It isn’t perfect, as you have discovered, so reports like these are helpful for identifying and fixing those gaps.

As it happens, we have an issue report for this here: [https://gitlab.kitware.com/paraview/paraview/-/issues/19636](https://gitlab.kitware.com/paraview/paraview/-/issues/19636). It will be addressed like any other bug in ParaView. For more info about that process, please see [How are features and bug fixes incorporated into ParaView?](https://discourse.paraview.org/t/how-are-features-and-bug-fixes-incorporated-into-paraview/4735)

---

<div class="post-metadata">

### Author: ![theodorebaltis](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/e480ec/32.png) [@theodorebaltis](https://discourse.paraview.org/u/theodorebaltis)
#### Post date: [April 20, 2022, 3:33pm UTC](https://discourse.paraview.org/t/is-it-normal-python-trace-doesnt-record-some-operation/9477/4 "2022-04-20T15:33:18Z")

</div>

Hey @cory.quammen

I always assumed Python tracing required some kind of code-specific-code, to account for the gaps. Nice to see that verified.

I can’t think of them off the top of my head, but there’s at least a few missing captures my users have come across. I should report them as they come up (how else will they get fixed, of course!), but now if I were to come up with a list do you guys prefer I make individual bug reports for each one?

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [April 20, 2022, 3:45pm UTC](https://discourse.paraview.org/t/is-it-normal-python-trace-doesnt-record-some-operation/9477/5 "2022-04-20T15:45:55Z")

</div>

> [@theodorebaltis](#):
>
> if I were to come up with a list do you guys prefer I make individual bug reports for each one?

Yes, please. That increases the dopamine hits available from closing issues 🙂

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [April 20, 2022, 4:18pm UTC](https://discourse.paraview.org/t/is-it-normal-python-trace-doesnt-record-some-operation/9477/6 "2022-04-20T16:18:55Z")

</div>

If you do post bugs of missing trace functionaltiy, you may want to reference them from this discourse post. Cory and I will both see them. And thanks for reporting!

---

<div class="post-metadata">

### Author: ![30Kaz](https://discourse.paraview.org/user_avatar/discourse.paraview.org/30kaz/32/5686_2.png) [@30Kaz](https://discourse.paraview.org/u/30Kaz)
#### Post date: [November 29, 2022, 6:09pm UTC](https://discourse.paraview.org/t/is-it-normal-python-trace-doesnt-record-some-operation/9477/7 "2022-11-29T18:09:04Z")

</div>

@wascott @cory.quammen  
I encountered this problem when using SPHVolumeInterpolator. Volume Refinement cannot be traced. Firstly, I would like this to be addressed. Secondly, I need to somehow extract this part, so are there any alternatives that I can implement right now whilst waiting for the bug to be addressed?  
I wish to change refinement mode to use cell-size, and change cell size.
