Skip to content

Commit

Permalink
Result._plot_point_scalars: correct pyvista version check for version…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
beppo-dd committed Oct 26, 2021
1 parent 1c6351e commit 3f6e296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansys/mapdl/reader/rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3f6e296

Please sign in to comment.