Skip to content

Commit 2d9917e

Browse files
authored
Merge branch 'master' into fix/associate_mesh_to_coordinates_field
2 parents 77618ba + 5c553aa commit 2d9917e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/ansys/dpf/core/_version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class ServerToAnsysVersion:
2323
"7.1": "2024R1",
2424
"8.0": "2024R2",
2525
"8.1": "2024R2",
26+
"8.2": "2024R2",
2627
}
2728

2829
def __getitem__(self, item):

src/ansys/dpf/core/meshes_container.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ def plot(self, fields_container=None, deform_by=None, scale_factor=1.0, **kwargs
105105

106106
random_color = "color" not in kwargs
107107
for mesh in self:
108+
if mesh.nodes.n_nodes == 0:
109+
continue
108110
if random_color:
109111
kwargs["color"] = [random(), random(), random()]
110112
pl.add_mesh(

0 commit comments

Comments
 (0)