Skip to content

Commit 908278c

Browse files
fix: avoid passing twice same argument (#207)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 0b1046f commit 908278c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

doc/changelog.d/207.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fix: avoid passing twice same argument

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)