diff --git a/doc/changelog.d/207.fixed.md b/doc/changelog.d/207.fixed.md new file mode 100644 index 00000000..9b0af9eb --- /dev/null +++ b/doc/changelog.d/207.fixed.md @@ -0,0 +1 @@ +fix: avoid passing twice same argument \ No newline at end of file diff --git a/src/ansys/tools/visualization_interface/backends/pyvista/pyvista_interface.py b/src/ansys/tools/visualization_interface/backends/pyvista/pyvista_interface.py index 8d2110ee..6422cd12 100644 --- a/src/ansys/tools/visualization_interface/backends/pyvista/pyvista_interface.py +++ b/src/ansys/tools/visualization_interface/backends/pyvista/pyvista_interface.py @@ -88,6 +88,8 @@ def __init__( message = "PyVistaQt dependency is not installed. Install it with " + \ "`pip install ansys-tools-visualization-interface[pyvistaqt]`." logger.warning(message) + # Avoiding having duplicated argument + plotter_kwargs.pop("off_screen", None) scene = pv.Plotter(off_screen=True, **plotter_kwargs) elif use_qt: scene = pyvistaqt.BackgroundPlotter()