Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
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
4 changes: 2 additions & 2 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- main

env:
MAIN_PYTHON_VERSION: '3.12'
MAIN_PYTHON_VERSION: '3.13'
RESET_IMAGE_CACHE: 0
PACKAGE_NAME: ansys-tools-visualization-interface
DOCUMENTATION_CNAME: visualization-interface.tools.docs.pyansys.com
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12', '3.13']
should-release:
- ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }}
exclude:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ venv/
ENV/
env.bak/
venv.bak/

.ub_venv/
# Spyder project settings
.spyderproject
.spyproject
Expand Down
2 changes: 0 additions & 2 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,4 @@ pdf:

# Build HTML files and generate examples as .py files
html:
pip uninstall vtk -y
pip install --extra-index-url https://wheels.vtk.org vtk-osmesa
@$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
1 change: 1 addition & 0 deletions doc/changelog.d/288.documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
maint: Update PyVista
2 changes: 1 addition & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@

# Intersphinx mapping
intersphinx_mapping = {
"python": ("https://docs.python.org/3.11", None),
"python": ("https://docs.python.org/3.13", None),
"numpy": ("https://numpy.org/doc/stable", None),
"scipy": ("https://docs.scipy.org/doc/scipy/", None),
"pyvista": ("https://docs.pyvista.org/version/stable", None),
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"pyvista >= 0.43.0,<1",
Expand All @@ -36,12 +37,14 @@ pyvistaqt = [
]
tests = [
"pytest==8.3.5",
"pyvista==0.45.0",
"pytest-pyvista==0.1.9",
"pytest-cov==6.1.1",
"pyside6==6.9.0",
]

doc = [
"pyvista==0.45.0",
"ansys-sphinx-theme==1.3.2",
"jupyter_sphinx==0.5.3",
"jupytext==1.17.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@
class Button(PlotterWidget):
"""Provides the abstract class for implementing buttons in PyAnsys.

Notes
-----
This class wraps the PyVista ``add_checkbox_button_widget()`` method.

Parameters
----------
plotter : Plotter
Expand All @@ -46,6 +42,9 @@ class Button(PlotterWidget):
dark_mode : bool, optional
Whether to activate the dark mode or not.

Notes
-----
This class wraps the PyVista ``add_checkbox_button_widget()`` method.
"""

def __init__(self, plotter: Plotter, button_config: tuple, dark_mode: bool = False) -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,15 @@ def __init__(self, plotter: Plotter, dark_mode: bool = False) -> None:
def callback(self, state: bool) -> None:
"""Remove or add the ruler widget actor upon click.

Notes
-----
This method provides a callback function for the ruler widet.
It is called every time the ruler widget is clicked.

Parameters
----------
state : bool
Whether the state of the button, which is inherited from PyVista, is ``True``.

Notes
-----
This method provides a callback function for the ruler widet.
It is called every time the ruler widget is clicked.
"""
if not state and self._actor:
self.plotter.remove_actor(self._actor)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@ def __init__(self, plotter: Plotter, dark_mode: bool = False) -> None:
def callback(self, state: bool) -> None:
"""Remove or add the screenshot widget actor upon click.

Notes
-----
This method provides a callback function for the screenshot widget.
It is called every time the screenshot widget is clicked.

Parameters
----------
state : bool
Whether the state of the button, which is inherited from PyVista, is ``True``.


Notes
-----
This method provides a callback function for the screenshot widget.
It is called every time the screenshot widget is clicked.
"""
self.plotter._pl.scene.screenshot("screenshot.png")

Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
[tox]
description = Default tox environments list
envlist =
style,{tests39,tests310,tests311,tests312}{,-coverage},doc
style,{tests310,tests311,tests312, tests313}{,-coverage},doc
skip_missing_interpreters = true
isolated_build = true
isolated_build_env = build

[testenv]
description = Checks for project unit tests and coverage (if desired)
basepython =
tests39: python3.9
tests310: python3.10
tests311: python3.11
tests312: python3.12
tests313: python3.13
{style,tests,doc}: python3
setenv =
PYTHONUNBUFFERED = yes
Expand Down
Loading