Skip to content

Commit

Permalink
Add deprecated modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
prmukherj committed Oct 16, 2024
1 parent 2b7b34d commit ea62f91
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/ansys/fluent/visualization/matplotlib/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""A DEPRECATED package that provides interfacing Fluent with plotters."""

import warnings

from ansys.fluent.core.warnings import PyFluentDeprecationWarning

warnings.warn(
"'matplotlib' is deprecated. Use 'plotter' instead.",
PyFluentDeprecationWarning,
)

from ansys.fluent.visualization.plotter.plotter_objects import Plots # noqa: F401
from ansys.fluent.visualization.plotter.plotter_windows_manager import ( # noqa: F401
plotter_windows_manager,
)

matplotlib_windows_manager = plotter_windows_manager
17 changes: 17 additions & 0 deletions src/ansys/fluent/visualization/pyvista/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""A DEPRECATED package that provides interfacing Fluent with graphics renderer."""

import warnings

from ansys.fluent.core.warnings import PyFluentDeprecationWarning

warnings.warn(
"'pyvista' is deprecated. Use 'graphics' instead.",
PyFluentDeprecationWarning,
)

from ansys.fluent.visualization.graphics.graphics_objects import Graphics # noqa: F401
from ansys.fluent.visualization.graphics.graphics_windows_manager import ( # noqa: F401
graphics_windows_manager,
)

pyvista_windows_manager = graphics_windows_manager

0 comments on commit ea62f91

Please sign in to comment.