diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f03205e6..b78b426a7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/ci_release.yml b/.github/workflows/ci_release.yml index 137c5afb0..639deec0d 100644 --- a/.github/workflows/ci_release.yml +++ b/.github/workflows/ci_release.yml @@ -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 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index d05eef1aa..5c28ea864 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -7,7 +7,7 @@ on: python_version: required: false type: string - default: "3.10" + default: "3.11" ANSYS_VERSION: required: false type: string @@ -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 diff --git a/doc/source/getting_started/demo.rst b/doc/source/getting_started/demo.rst index 468a48e48..c5261c172 100644 --- a/doc/source/getting_started/demo.rst +++ b/doc/source/getting_started/demo.rst @@ -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 diff --git a/doc/source/user_guide/plotting.rst b/doc/source/user_guide/plotting.rst index 55cb2bfd6..0dd13fb87 100644 --- a/doc/source/user_guide/plotting.rst +++ b/doc/source/user_guide/plotting.rst @@ -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 diff --git a/examples/01-Detailed-Examples/05-mesh-exploration.py b/examples/01-Detailed-Examples/05-mesh-exploration.py index 57ca9a231..0d30653be 100644 --- a/examples/01-Detailed-Examples/05-mesh-exploration.py +++ b/examples/01-Detailed-Examples/05-mesh-exploration.py @@ -58,7 +58,7 @@ ############################################################################### # Plot mesh -# ------------- +# --------- # Plot the mesh to view the bare mesh of the model. mesh.plot() @@ -103,7 +103,7 @@ ############################################################################### # Get elements -# -------- +# ------------ # Get a list of the elements. print(mesh.elements) @@ -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") ############################################################################### diff --git a/examples/05-Legacy/01-get_data_from_static_simulation.py b/examples/05-Legacy/01-get_data_from_static_simulation.py index b5310cb8e..94744cc9c 100644 --- a/examples/05-Legacy/01-get_data_from_static_simulation.py +++ b/examples/05-Legacy/01-get_data_from_static_simulation.py @@ -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)) diff --git a/examples/05-Legacy/04-harmonic-analysis.py b/examples/05-Legacy/04-harmonic-analysis.py index 1aeeb79e1..e239d167e 100644 --- a/examples/05-Legacy/04-harmonic-analysis.py +++ b/examples/05-Legacy/04-harmonic-analysis.py @@ -64,7 +64,7 @@ ############################################################################### # Get number of fields -# ~~~~~~~~~~~~~~~~~~~~~~ +# ~~~~~~~~~~~~~~~~~~~~ disp.num_fields @@ -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. diff --git a/examples/05-Legacy/05-transient-analysis.py b/examples/05-Legacy/05-transient-analysis.py index f6882e810..733d91a5c 100644 --- a/examples/05-Legacy/05-transient-analysis.py +++ b/examples/05-Legacy/05-transient-analysis.py @@ -60,7 +60,7 @@ ############################################################################### # Get number of fields -# ~~~~~~~~~~~~~~~~~~~~~~ +# ~~~~~~~~~~~~~~~~~~~~ disp.num_fields @@ -96,7 +96,7 @@ ############################################################################### # Get stress result for a tensor -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ stress_result = solution.stress() stress = stress_result.tensor diff --git a/examples/05-Legacy/07-result_keywords.py b/examples/05-Legacy/07-result_keywords.py index 0bc1d7765..5c46a29c2 100644 --- a/examples/05-Legacy/07-result_keywords.py +++ b/examples/05-Legacy/07-result_keywords.py @@ -94,7 +94,7 @@ ############################################################################### # Get a subresult -# ~~~~~~~~~~~~~~ +# ~~~~~~~~~~~~~~~ disp_x = displacement_result.x diff --git a/src/ansys/dpf/post/simulation.py b/src/ansys/dpf/post/simulation.py index 769348533..2fe480c00 100644 --- a/src/ansys/dpf/post/simulation.py +++ b/src/ansys/dpf/post/simulation.py @@ -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 -------- diff --git a/src/ansys/dpf/post/vector.py b/src/ansys/dpf/post/vector.py index 8b79e7eb3..75e3f8b34 100644 --- a/src/ansys/dpf/post/vector.py +++ b/src/ansys/dpf/post/vector.py @@ -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