From 3f6e296cb1180d6235380e68b546ec2f7d1985a1 Mon Sep 17 00:00:00 2001 From: Beppo <53090100+beppo-dd@users.noreply.github.com> Date: Tue, 26 Oct 2021 15:48:06 +0200 Subject: [PATCH] Result._plot_point_scalars: correct pyvista version check for version 0.32.dev0 The actual development version is 0.32.dev0: `pv._version.version_info = (0, 32, "dev0")`. There, the string `"dev0"` can not be compared with `0`, so that comparison failed for this version. To solve this, I removed the last element on the right-hand side expression of the comparison. The new comparison `(0, 32, "dev0") > (0, 32)` works now as expected. Tested manually. --- ansys/mapdl/reader/rst.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansys/mapdl/reader/rst.py b/ansys/mapdl/reader/rst.py index 3f2d2cd4..758930de 100644 --- a/ansys/mapdl/reader/rst.py +++ b/ansys/mapdl/reader/rst.py @@ -2754,7 +2754,7 @@ def _plot_point_scalars(self, scalars, rnum=None, grid=None, # camera position added in 0.32.0 show_kwargs = {} - if pv._version.version_info >= (0, 32, 0): + if pv._version.version_info >= (0, 32): show_kwargs['return_cpos'] = return_cpos if animate: