Skip to content

Commit 403c700

Browse files
committed
fix: avoid passing twice same argument
1 parent 0b1046f commit 403c700

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ansys/tools/visualization_interface/backends/pyvista/pyvista_interface.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ def __init__(
8888
message = "PyVistaQt dependency is not installed. Install it with " + \
8989
"`pip install ansys-tools-visualization-interface[pyvistaqt]`."
9090
logger.warning(message)
91+
# Avoiding having duplicated argument
92+
plotter_kwargs.pop("off_screen", None)
9193
scene = pv.Plotter(off_screen=True, **plotter_kwargs)
9294
elif use_qt:
9395
scene = pyvistaqt.BackgroundPlotter()

0 commit comments

Comments
 (0)