Skip to content

ci(doc): build using Python 3.11 #831

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ jobs:
uses: ./.github/workflows/docs.yml
with:
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || vars.ANSYS_VERSION_DEFAULT }}
python_version: "3.10"
python_version: "3.11"
standalone_suffix: ${{ inputs.standalone_suffix || ''}}
event_name: ${{ github.event_name }}
secrets: inherit
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ jobs:
uses: ./.github/workflows/docs.yml
with:
ANSYS_VERSION: '251'
python_version: "3.10"
python_version: "3.11"
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
event_name: ${{ github.event_name }}
secrets: inherit
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
python_version:
required: false
type: string
default: "3.10"
default: "3.11"
ANSYS_VERSION:
required: false
type: string
Expand Down Expand Up @@ -36,7 +36,7 @@ on:
description: "Python interpreter"
required: true
type: string
default: "3.10"
default: "3.11"
ANSYS_VERSION:
description: "ANSYS version"
required: false
Expand Down
2 changes: 1 addition & 1 deletion doc/source/getting_started/demo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ to extract and postprocess results:

.. image:: ./../images/crankshaft_stress.png
:align: center
:figwidth: 300pt
:width: 300pt


2021 R1 through 2022 R2
Expand Down
2 changes: 1 addition & 1 deletion doc/source/user_guide/plotting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ This code shows how to plot the total deformation (norm of the displacement vect
>>> displacement_norm.plot(screenshot="crankshaft_disp.png")

.. image:: ./../images/crankshaft_disp.png
:align: leftcenter
:align: center
:width: 300pt


Expand Down
6 changes: 3 additions & 3 deletions examples/01-Detailed-Examples/05-mesh-exploration.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

###############################################################################
# Plot mesh
# -------------
# ---------
# Plot the mesh to view the bare mesh of the model.
mesh.plot()

Expand Down Expand Up @@ -103,7 +103,7 @@

###############################################################################
# Get elements
# --------
# ------------
# Get a list of the elements.
print(mesh.elements)

Expand Down Expand Up @@ -244,7 +244,7 @@
meshes.plot(text="Mesh split")

###############################################################################
# Select a specific ``Mesh``object in the split mesh by index.
# Select a specific ``Mesh`` object in the split mesh by index.
meshes[0].plot(text="First mesh in the split mesh")

###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion examples/05-Legacy/01-get_data_from_static_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@

###############################################################################
# Get stresses at only five nodes
# ------------------------------
# -------------------------------
# Get stresses at only the first five nodes using their IDs.
stress_nodes = simulation.stress_nodal(node_ids=range(1, 6))

Expand Down
4 changes: 2 additions & 2 deletions examples/05-Legacy/04-harmonic-analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

###############################################################################
# Get number of fields
# ~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~

disp.num_fields

Expand Down Expand Up @@ -149,7 +149,7 @@

###############################################################################
# Get elastic strain result
# =========================
# -------------------------
# Get an elastic strain result that deals with phase. It contains a field for
# real values and a field for imaginary values.

Expand Down
4 changes: 2 additions & 2 deletions examples/05-Legacy/05-transient-analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

###############################################################################
# Get number of fields
# ~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~

disp.num_fields

Expand Down Expand Up @@ -96,7 +96,7 @@

###############################################################################
# Get stress result for a tensor
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

stress_result = solution.stress()
stress = stress_result.tensor
Expand Down
2 changes: 1 addition & 1 deletion examples/05-Legacy/07-result_keywords.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@

###############################################################################
# Get a subresult
# ~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~

disp_x = displacement_result.x

Expand Down
20 changes: 10 additions & 10 deletions requirements/requirements_docs.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
pypandoc==1.15
ansys_sphinx_theme[autoapi]==1.4.1
imageio==2.37.0
numpydoc==1.8.0
imageio-ffmpeg==0.6.0
Sphinx==8.1.3
sphinxcontrib-napoleon==0.7
sphinxcontrib-websupport==2.0.0
numpydoc==1.8.0
pypandoc==1.15
pytest-sphinx==0.6.3
sphinx-notfound-page==1.1.0
pyvista==0.45.2
sphinx==8.2.3
sphinx-autodoc-typehints==3.0.1
sphinx-copybutton==0.5.0
sphinx-gallery==0.19.0
ansys_sphinx_theme==1.4.1
sphinx-autodoc-typehints==3.0.1
pyvista==0.45.2
vtk==9.3.1
sphinx-notfound-page==1.1.0
sphinx-design===0.6.1
sphinxcontrib-napoleon==0.7
sphinxcontrib-websupport==2.0.0
vtk==9.4.2
2 changes: 1 addition & 1 deletion src/ansys/dpf/post/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def plot(
def active_selection(self) -> Union[Selection, None]:
"""Active selection used by default for result queries.

Returns a :object:`ansys.dpf.post.selection.Selection` object.
Returns a :class:`ansys.dpf.post.selection.Selection` object.

Examples
--------
Expand Down
2 changes: 1 addition & 1 deletion src/ansys/dpf/post/vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

"""Module containing ``Result` subclasses for vectors."""
"""Module containing ``Result`` subclasses for vectors."""

from ansys.dpf.core import Operator

Expand Down
Loading