Skip to content

Commit 452c0a2

Browse files
Bump version 0.12.1
1 parent 635065f commit 452c0a2

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix: Uninitialized variable in PyVistaBackendInterface

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"
44

55
[project]
66
name = "ansys-tools-visualization-interface"
7-
version = "0.12.0"
7+
version = "0.12.1"
88
description = "A Python visualization interface for PyAnsys libraries"
99
readme = "README.rst"
1010
requires-python = ">=3.10,<4"

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ def __init__(
131131
# Map that relates PyVista actors with PyAnsys objects
132132
self._object_to_actors_map = {}
133133

134+
self._edge_actors_map: Dict[pv.Actor, EdgePlot] = {}
135+
134136
# PyVista plotter
135137
self._pl = None
136138

tests/test_generic_plotter.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import pytest
2828
import pyvista as pv
2929

30-
from ansys.tools.visualization_interface import ClipPlane, MeshObjectPlot, Plotter
30+
from ansys.tools.visualization_interface import ClipPlane, EdgePlot, MeshObjectPlot, Plotter
3131
from ansys.tools.visualization_interface.backends.pyvista import PyVistaBackend
3232
from ansys.tools.visualization_interface.backends.pyvista.picker import Picker
3333

@@ -93,7 +93,9 @@ def test_plotter_add_structured_grid():
9393
def test_plotter_add_custom():
9494
"""Adds a MeshObjectPlot object to the plotter."""
9595
sphere = pv.Sphere()
96-
custom = MeshObjectPlot(CustomTestClass("myname"), sphere)
96+
edge = pv.Cube((0, 1, 0))
97+
custom_edge = EdgePlot(CustomTestClass("myname_edge"), edge)
98+
custom = MeshObjectPlot(CustomTestClass("myname"), sphere, edges=[custom_edge])
9799
pl = Plotter()
98100
pl.plot(custom)
99101
pl.show()

0 commit comments

Comments
 (0)