Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
73337b5
fix: Optional viz dependency
AlejandroFernandezLuces Apr 1, 2025
1bfe70a
chore: adding changelog file 3820.fixed.md [dependabot-skip]
pyansys-ci-bot Apr 1, 2025
4af92af
fix: Change messages
AlejandroFernandezLuces Apr 1, 2025
2f4314e
Merge branch 'fix/optional-visualizer' of https://github.com/pyansys/…
AlejandroFernandezLuces Apr 1, 2025
624324a
Merge branch 'main' into fix/optional-visualizer
AlejandroFernandezLuces Apr 1, 2025
22a091f
chore: adding changelog file 3820.fixed.md [dependabot-skip]
pyansys-ci-bot Apr 1, 2025
dd44368
feat: Add decorator, move matplotlib to graphics, partial parameter n…
AlejandroFernandezLuces Apr 2, 2025
765256d
Merge branch 'main' into fix/optional-visualizer
AlejandroFernandezLuces Apr 2, 2025
4c985d4
Apply suggestions from code review
AlejandroFernandezLuces Apr 2, 2025
1d36fb0
feat: Add backend selector
AlejandroFernandezLuces Apr 2, 2025
06a7117
Update src/ansys/mapdl/core/mapdl_core.py
AlejandroFernandezLuces Apr 2, 2025
d6f3846
feat: Add `set_default_backend` method and default pyvista backend
AlejandroFernandezLuces Apr 3, 2025
8a38cff
Merge branch 'fix/optional-visualizer' of https://github.com/pyansys/…
AlejandroFernandezLuces Apr 3, 2025
f5844a2
fix: Decorator
AlejandroFernandezLuces Apr 3, 2025
0fec75e
feat: Add new parameter to tests
AlejandroFernandezLuces Apr 3, 2025
1f52384
feat: Change launcher to new Enum
AlejandroFernandezLuces Apr 3, 2025
d4b95c9
fix: Missing vtk=true in examples
AlejandroFernandezLuces Apr 3, 2025
0d5c2fb
fix: CLI input
AlejandroFernandezLuces Apr 3, 2025
e367dd9
fix: Wrong param name
AlejandroFernandezLuces Apr 3, 2025
387a5cc
fix: PR suggestions
AlejandroFernandezLuces Apr 7, 2025
f5556b7
Merge branch 'main' into fix/optional-visualizer
AlejandroFernandezLuces Apr 7, 2025
13798d0
fix: Import
AlejandroFernandezLuces Apr 7, 2025
fbb423a
Merge branch 'fix/optional-visualizer' of https://github.com/pyansys/…
AlejandroFernandezLuces Apr 7, 2025
93404ee
fix: Import
AlejandroFernandezLuces Apr 7, 2025
da82c99
fix: Import
AlejandroFernandezLuces Apr 7, 2025
5b0511c
fix: Missing imports
AlejandroFernandezLuces Apr 7, 2025
eed1822
fix: returning to default state after test
germa89 Apr 7, 2025
ec45e05
feat: making sure we return to default state after testing
germa89 Apr 7, 2025
0963041
fix: update import statements
germa89 Apr 7, 2025
e7956ec
fix: update graphics_backend to use GraphicsBackend enum in failing test
germa89 Apr 7, 2025
568fb42
fix: docstrings in post functions and their test
germa89 Apr 7, 2025
c2f0790
fix: capitalization in enum
germa89 Apr 7, 2025
9d382d6
fix: update graphics_backend handling in convert function and tests
germa89 Apr 7, 2025
2ad65a1
fix: add wraps decorator to requires_graphics function so the docstri…
germa89 Apr 7, 2025
ecd4e1f
Merge branch 'main' into fix/optional-visualizer
germa89 Apr 7, 2025
7b0ddcd
test: Add non existent backend
AlejandroFernandezLuces Apr 8, 2025
9956b2d
test: fix cli test
AlejandroFernandezLuces Apr 8, 2025
826375c
Merge branch 'main' into fix/optional-visualizer
germa89 Apr 14, 2025
64d26c6
ci: auto fixes from pre-commit.com hooks.
pre-commit-ci[bot] Apr 14, 2025
58c9d91
Merge branch 'main' into fix/optional-visualizer
germa89 Apr 14, 2025
34740c4
fix: Add decorator for deprecated param
AlejandroFernandezLuces Apr 14, 2025
7abb577
Merge branch 'fix/optional-visualizer' of https://github.com/pyansys/…
AlejandroFernandezLuces Apr 14, 2025
d0028b9
chore: adding changelog file 3820.fixed.md [dependabot-skip]
pyansys-ci-bot Apr 14, 2025
55bc120
fix: Force keyword-only arguments for non-MAPDL arguments in extended…
germa89 Apr 14, 2025
5f017d8
Apply suggestions from code review
AlejandroFernandezLuces Apr 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changelog.d/3820.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix: Optional graphics dependency
14 changes: 12 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ dependencies = [
"ansys-math-core>=0.1.2",
"ansys-platform-instancemanagement~=1.0",
"ansys-tools-path>=0.3.1",
"ansys-tools-visualization-interface>=0.2.6",
"click>=8.1.3", # for CLI interface
"grpcio>=1.30.0", # tested up to grpcio==1.35
"matplotlib>=3.0.0", # for colormaps for pyvista
"numpy>=1.14.0,<3.0.0",
"pexpect>=4.8.0 ; platform_system=='Linux'",
"platformdirs>=3.6.0",
Expand Down Expand Up @@ -53,6 +51,18 @@ jupyter = [
"ipywidgets",
]

graphics = [
"ansys-tools-visualization-interface>=0.2.6",
"matplotlib>=3.0.0", # for colormaps for pyvista
]

all = [
"ansys-tools-visualization-interface>=0.2.6",
"matplotlib>=3.0.0", # for colormaps for pyvista
"jupyterlab>=3",
"ipywidgets",
]

tests = [
"ansys-dpf-core==0.10.1",
"ansys-tools-visualization-interface==0.8.3",
Expand Down
4 changes: 3 additions & 1 deletion src/ansys/mapdl/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@
_HAS_PYVISTA: bool = is_installed("pyvista")
_HAS_REQUESTS: bool = is_installed("requests")
_HAS_TQDM: bool = is_installed("tqdm")
_HAS_VISUALIZER: bool = is_installed("ansys.tools.visualization_interface")
_HAS_VISUALIZER: bool = is_installed(
"ansys.tools.visualization_interface"
) and is_installed("matplotlib")


# Setup directories
Expand Down
Loading
Loading