Skip to content

Commit

Permalink
Bump version 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
RobPasMue authored and AlejandroFernandezLuces committed May 30, 2024
1 parent 7a526d5 commit 7c81f41
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions doc/changelog.d/65.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix: usage of global vars throughout the library
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"

[project]
name = "ansys-tools-visualization-interface"
version = "0.2.1"
version = "0.2.2"
description = "A Python visualization interface for PyAnsys libraries"
readme = "README.rst"
requires-python = ">=3.9,<4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import pyvista as pv
from pyvista.plotting.plotter import Plotter as PyVistaPlotter

from ansys.tools.visualization_interface import DOCUMENTATION_BUILD, TESTING_MODE
import ansys.tools.visualization_interface as viz_interface
from ansys.tools.visualization_interface.types.edge_plot import EdgePlot
from ansys.tools.visualization_interface.types.mesh_object_plot import MeshObjectPlot
from ansys.tools.visualization_interface.utils.clip_plane import ClipPlane
Expand Down Expand Up @@ -74,7 +74,7 @@ def __init__(
# Generate custom scene if ``None`` is provided
if scene is None:
scene = pv.Plotter(plotter_kwargs)
if TESTING_MODE:
if viz_interface.TESTING_MODE:
scene.off_screen = True
# If required, use a white background with no gradient
if not color_opts:
Expand Down Expand Up @@ -326,7 +326,7 @@ def show(
jupyter_backend = "trame"

# Override Jupyter backend if building docs
if DOCUMENTATION_BUILD:
if viz_interface.DOCUMENTATION_BUILD:
jupyter_backend = "html"

# Enabling anti-aliasing by default on scene
Expand All @@ -337,7 +337,7 @@ def show(
self.scene.off_screen = True

# If running on testing, set off_screen to True for the plotter
if TESTING_MODE or DOCUMENTATION_BUILD:
if viz_interface.TESTING_MODE or viz_interface.DOCUMENTATION_BUILD:
self.scene.off_screen = True

self.scene.show(jupyter_backend=jupyter_backend, **kwargs)
Expand Down

0 comments on commit 7c81f41

Please sign in to comment.