ParaView issueshttps://gitlab.kitware.com/paraview/paraview/-/issues2022-09-18T22:23:23-04:00https://gitlab.kitware.com/paraview/paraview/-/issues/21567pypython/pvbatch vtkMatplotlibMathTextUtilities parse failure2022-09-18T22:23:23-04:00Colin Starkpypython/pvbatch vtkMatplotlibMathTextUtilities parse failureWhen running pvbatch/pvpython on e.g.
```
SaveAnimation('animation_frames/frame.png', layout1, ImageResolution=[1920, 1080], FrameWindow=[0, 300])
```
failure occurs when parsing e.g.
```
$\epsilon_{rsp}=80.1$
```
giving the error
```
( ...When running pvbatch/pvpython on e.g.
```
SaveAnimation('animation_frames/frame.png', layout1, ImageResolution=[1920, 1080], FrameWindow=[0, 300])
```
failure occurs when parsing e.g.
```
$\epsilon_{rsp}=80.1$
```
giving the error
```
( 118.609s) [paraview]vtkMatplotlibMathTextUt:616 WARN| vtkMatplotlibMathTextUtilities (0x7ffa4e0666e0): Failed to compute rows and cols for cell : $\epsilon_{rsp}=80.1$
```
FWIW I get this error when instantiating pvpython/pvbatch:
```
Could not find platform dependent libraries <exec_prefix>
```
but it's presumably unrelated.https://gitlab.kitware.com/paraview/paraview/-/issues/19943python animation script called before view is created when loading state file2021-03-24T07:49:12-04:00Dan Lipsapython animation script called before view is created when loading state fileFor the attached state file, the python animation script embedded is called before the view is created.
To reproduce, load the attached pvsm on the attached data. This prints:
Warning: tick() called before view is created
[allFrames.p...For the attached state file, the python animation script embedded is called before the view is created.
To reproduce, load the attached pvsm on the attached data. This prints:
Warning: tick() called before view is created
[allFrames.pvsm](/uploads/0bf62404c190de4d23fe3c6f7c64f77f/allFrames.pvsm)
The data is at:
https://drive.google.com/file/d/1MZUzCbjTtEcMzDDpR6L7KRf84Z_KYjFN/view?usp=sharing
ref: [discourse](https://discourse.paraview.org/t/animation-python-script-error-when-loaded-from-state-file/4375/7)https://gitlab.kitware.com/paraview/paraview/-/issues/15510Python Annotation Filter in custom filter generate table2018-02-26T13:15:55-05:00Kitware RobotPython Annotation Filter in custom filter generate table**This issue was created automatically from an original [Mantis Issue](http://paraview.org/Bug/view.php?id=15510). Further discussion may take place here.**
---
(Git master versin, as well in 4.3.1)
Putting an Python Annotation Filter...**This issue was created automatically from an original [Mantis Issue](http://paraview.org/Bug/view.php?id=15510). Further discussion may take place here.**
---
(Git master versin, as well in 4.3.1)
Putting an Python Annotation Filter in a custom filter, then using this new custom filter will only generate table data.
How to reproduce:
Create a source
Add a python annotation , using "Test" as a expression, Apply
Create a custom filter with the python annotation filter
Add the new custom filter to the source, Apply
What is seen:
A new spreadsheet view open showing the "Test" data, the icon of the custom filter is a table
What is expected:
Th render view should show a "Test" Annotation, the custom filter icon should be a "green cube" like standard filter.https://gitlab.kitware.com/paraview/paraview/-/issues/18925Python calculator doesn't work for Lagrange hexahedron cell types2021-03-24T05:13:54-04:00vrkssaiPython calculator doesn't work for Lagrange hexahedron cell typesIn regard to the below discourse post: https://discourse.paraview.org/t/vorticity-and-gradient-calculation-numerics-gives-wrong-result/1514?u=vrkssai
The filter "Gradient of Unstructured data" and Vorticity Calculation using python calc...In regard to the below discourse post: https://discourse.paraview.org/t/vorticity-and-gradient-calculation-numerics-gives-wrong-result/1514?u=vrkssai
The filter "Gradient of Unstructured data" and Vorticity Calculation using python calculator for Lagrange Hexahedron Grids give erroneous results.The steps and files to reproduce are in the post.https://gitlab.kitware.com/paraview/paraview/-/issues/20694python calculator partially handle FieldData2023-06-08T10:23:51-04:00Nicolas Vuaillepython calculator partially handle FieldDataAs mentioned in the [doc](https://docs.paraview.org/en/latest/UsersGuide/filteringData.html?highlight=python%20calculator#basic-operations), FieldData array can easily be used in Python Calculator expressions.
But I notice some unexpect...As mentioned in the [doc](https://docs.paraview.org/en/latest/UsersGuide/filteringData.html?highlight=python%20calculator#basic-operations), FieldData array can easily be used in Python Calculator expressions.
But I notice some unexpected behavior.
The combobox `Array Association` does not offer the FieldData choice, but using an expression containing only a FieldData create a FieldData array.
* load test_fielddata.vtk
* Python Calculator
* `inputs[0].FieldData["Field_1D"]`, Apply
-> a FieldData named result is created.
also maybe related to https://gitlab.kitware.com/paraview/paraview/-/issues/21649https://gitlab.kitware.com/paraview/paraview/-/issues/21181Python Editor not closing tabs correctly2024-03-07T20:23:48-05:00W. Alan ScottPython Editor not closing tabs correctlyThe Python Editor is not closing tabs correctly. If a user creates a trace (i.e., Tools/ Start Trace, Tools/ Stop Trace), and goes File/ Close, upon creating another trace, the old tab still exists and is populated. This is a bug.
Lin...The Python Editor is not closing tabs correctly. If a user creates a trace (i.e., Tools/ Start Trace, Tools/ Stop Trace), and goes File/ Close, upon creating another trace, the old tab still exists and is populated. This is a bug.
Linux, 5.10.0.5.13 (Summer 2024)https://gitlab.kitware.com/paraview/paraview/-/issues/20606Python Editor: Improve Programmable Filter integration2021-04-02T09:52:25-04:00Mathieu Westphal (Kitware)Python Editor: Improve Programmable Filter integrationThe following discussion from !4776 should be addressed:
- [ ] @mwestphal started a [discussion](https://gitlab.kitware.com/paraview/paraview/-/merge_requests/4776#note_922745): (+6 comments)
> Is the [Information Script] really a...The following discussion from !4776 should be addressed:
- [ ] @mwestphal started a [discussion](https://gitlab.kitware.com/paraview/paraview/-/merge_requests/4776#note_922745): (+6 comments)
> Is the [Information Script] really a good idea ? I'm not sure to see what it provides.
The tag could contains the name of the filter ? Something like [Information Script: ProgFilter1], or maybe as a status tip ?https://gitlab.kitware.com/paraview/paraview/-/issues/20480Python filter with TemporalShiftScale not working correctly2021-03-24T09:28:10-04:00Jacob MersonPython filter with TemporalShiftScale not working correctlyI see very strange behavior when doing computations with the results from a temporal shift operator. I'm using the temporal shift operator to try to subtract the value of one frame from the next. To do this I apply the temporal shift sca...I see very strange behavior when doing computations with the results from a temporal shift operator. I'm using the temporal shift operator to try to subtract the value of one frame from the next. To do this I apply the temporal shift scale operator with a scale of 1 and post shift of 1. I then use the following equation in my python filter `inputs[0].PointData["Displacement"]-inputs[1].PointData["Displacement"]`. Where `inputs[0]` should be the original data, and `inputs[1]` should be the shifted data.
When I initially apply the filters I get the expected result. However, if I advance the timestep the data immediately goes to zero. If I reapply the python filter, the numerical values return to the expected result.https://gitlab.kitware.com/paraview/paraview/-/issues/19519python object path are incorrect in the python shell2021-03-24T06:44:55-04:00Mathieu Westphal (Kitware)python object path are incorrect in the python shellWhen using python, the python shell give module path for python object.
These module path are always incorrect.
```
w=Wavelet()
c=Clip()
Show()
Render()
t=c.ClipType
t
<paraview.servermanager.Plane object at 0x7f4f31803910>
paraview.ser...When using python, the python shell give module path for python object.
These module path are always incorrect.
```
w=Wavelet()
c=Clip()
Show()
Render()
t=c.ClipType
t
<paraview.servermanager.Plane object at 0x7f4f31803910>
paraview.servermanager.Plane
Traceback (most recent call last):
File "<console>", line 1, in <module>
AttributeError: module 'paraview.servermanager' has no attribute 'Plane'
paraview.servermanager.implicit_functions.Plane
<class 'paraview.servermanager.Plane'>
```
This module path is really hard to guess and must be hardcoded somewhere.https://gitlab.kitware.com/paraview/paraview/-/issues/19472Python or xml-only plugins not supported by distributed plugin search mechanism2021-03-24T06:40:01-04:00Utkarsh AyachitPython or xml-only plugins not supported by distributed plugin search mechanismPlugins distributed by ParaView currently have to be compiled and cannot be Python-only or XML-only. This is because the lookup for plugins based on name only looks for plugins with shared library suffixes.
Note, such plugins should be ...Plugins distributed by ParaView currently have to be compiled and cannot be Python-only or XML-only. This is because the lookup for plugins based on name only looks for plugins with shared library suffixes.
Note, such plugins should be supported in static builds too.https://gitlab.kitware.com/paraview/paraview/-/issues/22130Python Plugin Documentation missing in pop-up window2023-05-05T12:15:14-04:00Julien FaustyPython Plugin Documentation missing in pop-up window## Problem Statement
When using a filter from a loaded python plugin, clicking on the question mark button in the properties panel does not show the documentation associated when that filter.
## Steps to reproduce
* Load this python p...## Problem Statement
When using a filter from a loaded python plugin, clicking on the question mark button in the properties panel does not show the documentation associated when that filter.
## Steps to reproduce
* Load this python plugin: [MyRandomWarp.py](/uploads/2f23cd1959288b97b37c88bb077d0b32/MyRandomWarp.py)
* Create a Sphere
* Apply the "My Random Warp" filter
* Click on the question mark button to open up the documentation windowhttps://gitlab.kitware.com/paraview/paraview/-/issues/21012Python Script Editor hides when closing tabs2021-10-06T12:35:14-04:00W. Alan ScottPython Script Editor hides when closing tabsThere is a relative of 2. Here is how to replicate.
* 5.10.0-RC1. Linux. Builtin server.
* Tools/ Python Script Editor.
* Type something. "Fred".
* +, i.e., add a new tab.
* Type something. "Flintstone"
* Click on the first tab.
* Click...There is a relative of 2. Here is how to replicate.
* 5.10.0-RC1. Linux. Builtin server.
* Tools/ Python Script Editor.
* Type something. "Fred".
* +, i.e., add a new tab.
* Type something. "Flintstone"
* Click on the first tab.
* Click the X to delete it.
* A dialog comes up, asking if we want to close without saving, cancel, or save.
The Python Script Editor has gone behind ParaView. This is a bug.https://gitlab.kitware.com/paraview/paraview/-/issues/17997Python script UI needs line numbers2018-02-16T19:50:02-05:00Utkarsh AyachitPython script UI needs line numbersWhen typing script in Python Programmable Filter/Source, and if there are errors, line numbers are reported in error messages. However the UI has no line numbers which makes it hard to use.When typing script in Python Programmable Filter/Source, and if there are errors, line numbers are reported in error messages. However the UI has no line numbers which makes it hard to use.https://gitlab.kitware.com/paraview/paraview/-/issues/20570python shell does not find proxies of plugins loaded after shell initialization2021-03-24T09:39:43-04:00Nicolas Vuaillepython shell does not find proxies of plugins loaded after shell initializationIf the python shell is initialized before loading plugins, the proxies from those plugins are not available from the python shell.
Steps:
- click in the python shell (so it executes `from paraview.simple import *`)
- load plugin ArrowGl...If the python shell is initialized before loading plugins, the proxies from those plugins are not available from the python shell.
Steps:
- click in the python shell (so it executes `from paraview.simple import *`)
- load plugin ArrowGlyphFilter
- in python shell:
```
>>> ArrowGlyphFilter()
NameError: name 'ArrowGlyphFilter' is not defined
```
But the filter is accessible and can be used correctly through the GUI.https://gitlab.kitware.com/paraview/paraview/-/issues/21404Python state doesn't load the full state, have to 're-apply' the pipeline2023-07-05T11:08:54-04:00Ethan StamPython state doesn't load the full state, have to 're-apply' the pipeline@cory.quammen @berkgeveci @patchett2002 @maxwelljackson002
Reproduced on Windows 10 with ParaView 5.10.1
I don't hit this problem with `.pvsm` state files. With the `.py` state file, it seems to be missing one final step to fully recr...@cory.quammen @berkgeveci @patchett2002 @maxwelljackson002
Reproduced on Windows 10 with ParaView 5.10.1
I don't hit this problem with `.pvsm` state files. With the `.py` state file, it seems to be missing one final step to fully recreate the state. For example, when loading a time-series the number of timesteps stays at the default 10 timesteps. After re-applying the pipeline element, the time values are corrected.
Steps to Reproduce:
1. Load can.ex2 example dataset -> Apply
2. File -> Save State -> Save as `.py`
3. Reset Session
4. File -> Load State -> Load state.py file from Step 2
5. Step through the timesteps.
If you get the bug, you'll see the time is not incrementing correctly. Timesteps later than 0 will also have a `?` in the dropdown box, and the dropdown box is unclickable.
![image](/uploads/b407822e7600d08dabe5d3c5bc64646a/image.png)
To fix the state, I needed to change a property in the properties panel so I can click the Apply button. After that, the state seems corrected, and the time controls are correct.
![image](/uploads/b6c685aced550372b198d022925f17a8/image.png)https://gitlab.kitware.com/paraview/paraview/-/issues/21107Python state file, Scalar array name not shown in the GUI2024-02-28T15:23:32-05:00Charles GueunetPython state file, Scalar array name not shown in the GUIWhen loading the [attached python file](/uploads/538b7aace974507061e902823e4ea8a9/contour.py), I obtain the following result:
![image](/uploads/a4cf364fd9e90dbb65d779571552642a/image.png)
This pipeline is simply a sphere, an elevation ...When loading the [attached python file](/uploads/538b7aace974507061e902823e4ea8a9/contour.py), I obtain the following result:
![image](/uploads/a4cf364fd9e90dbb65d779571552642a/image.png)
This pipeline is simply a sphere, an elevation and a Contour, the result shown by ParaView is the right one, but the Contour properties are missing the Scalar field name.
This problem is not specific to the Contour filter, using a Threshold for example would lead to the same issue with a missing Scalar field name.
Interesting thing, we can have the property rightfully loaded by first setting it to 'None' as shows on line 65 in the script.
This problem was initially found by @jones .
@mwestphal @utkarsh.ayachit5.13 (Summer 2024)Cory Quammencory.quammen@kitware.comCory Quammencory.quammen@kitware.comhttps://gitlab.kitware.com/paraview/paraview/-/issues/20092Python syntax highlighting is not working in the PythonShell2021-03-24T08:17:27-04:00Mathieu Westphal (Kitware)Python syntax highlighting is not working in the PythonShellPython syntax highlighting is not working in the PythonShell when writing python codePython syntax highlighting is not working in the PythonShell when writing python codehttps://gitlab.kitware.com/paraview/paraview/-/issues/19636Python trace does not record changes to stream tracer seeds2024-03-07T20:47:12-05:00Kenneth MorelandPython trace does not record changes to stream tracer seedsIf you are running the python trace, it will not pick up changes to the seed type. So it will not record changes to the endpoints of a line source or the center and radius of a point source.
To replicate, do the following.
1. Load `dis...If you are running the python trace, it will not pick up changes to the seed type. So it will not record changes to the endpoints of a line source or the center and radius of a point source.
To replicate, do the following.
1. Load `disk_out_ref.ex2`. Load all variables. `Apply`.
2. Add the `Stream Tracer` filter. `Apply`.
3. Turn on python tracing (`Tools` -> `Start Trace`).
4. Change the `Seed Type` for the stream tracer to `Point Source`.
5. Change the `Center` and `Radius` of the seeds to some different values.
6. `Apply` the stream tracer.
7. Turn off python tracing (`Tools` -> `Stop Trace`).
If you look at the resulting script, you can see where the seed type was changed to `Point Source`, but it does not set the center or radius. (Note that if you create the python script by saving state, it does capture the change.)5.13 (Summer 2024)https://gitlab.kitware.com/paraview/paraview/-/issues/21320Python trace generation on load state with arguments is failing2023-01-05T08:19:08-05:00laurent90gitPython trace generation on load state with arguments is failingParaView fails to generate a correct trace with Loading a state with arguments.
Steps to reproduce:
- Open ParaView
- Open any file, apply
- File -> Save State
- Reset Session
- Tools -> StartTrace
- File -> Loade State -> Search...ParaView fails to generate a correct trace with Loading a state with arguments.
Steps to reproduce:
- Open ParaView
- Open any file, apply
- File -> Save State
- Reset Session
- Tools -> StartTrace
- File -> Loade State -> Search files under specified dir
- Tools -> StopTrace
- Trace is empty and error is shown:
```
Traceback (most recent call last):
File "/home/glow/work/paraview/others/ParaView-5.10.0-MPI-Linux-Python3.9-x86_64/lib/python3.9/site-packages/paraview/smtrace.py", line 1811, in _stop_trace_internal
trace = str(Trace.Output)
File "/home/glow/work/paraview/others/ParaView-5.10.0-MPI-Linux-Python3.9-x86_64/lib/python3.9/site-packages/paraview/smtrace.py", line 116, in __str__
return '\n'.join(self.__data)
TypeError: sequence item 17: expected str instance, bool found
```
Trace should have been:
```
LoadState("path/to/state/file", "path/to/dir", True)
```
Note: Save state is not traced at all.https://gitlab.kitware.com/paraview/paraview/-/issues/21386Python Trace with all properties stored doesn't properly store custom transfe...2022-05-05T11:14:35-04:00Andrew BauerPython Trace with all properties stored doesn't properly store custom transfer function information in the traceI did some testing on when custom transfer functions are contained in the state or trace files and it looks like both the pvsm and Python state files store the custom transfer function properly. The Python trace doesn't store the custom ...I did some testing on when custom transfer functions are contained in the state or trace files and it looks like both the pvsm and Python state files store the custom transfer function properly. The Python trace doesn't store the custom transfer function information in the trace file. I think I set the proper parameters when initiating the Python trace. This was with PV master as of May 4th, 2022. Here's my steps to reproduce:
1. Create a custom transfer function in ParaView, preferably one with a unique transparency controls and save that as a custom transfer function.
2. Exit ParaView.
3. Start ParaView and Start Trace. Then change `any modified properties` to `all properties` and check the `Fully Trace Supplemental Proxies` options for the trace
4. Create a `Wavelet` source, choose the Volume rendered view and choose the custom transfer function for colormapping
5. Save a screenshot
6. Stop Trace and save as a Python script
7. Remove the custom transfer function
8. Exit ParaView
9. Rename the generated screenshot (to make it easier for comparison)
10. Run the generated Python script with `pvpython`
It looks like there are numbers for the TF in script but if you look at the images it should be clear that the TF isn't properly getting saved.Cory Quammencory.quammen@kitware.comCory Quammencory.quammen@kitware.com