Skip to content

Commit

Permalink
Merge branch 'main' into doc/add-quarto-cheatsheet
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroFernandezLuces authored Oct 2, 2024
2 parents c253c25 + 99d25eb commit cc00c39
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 22 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ jobs:
with:
check-links: false
needs-quarto: true
sphinxopts: "-j auto --keep-going"
env:
PYPRIMEMESH_LAUNCH_CONTAINER: 1
PYPRIMEMESH_SPHINX_BUILD: 1
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ To reach the project support team, email [[email protected]](mailtto:pyansy

## Installation

The `ansys-meshing-prime` package supports Python 3.8 to Python 3.11 on the Windows and Linux
The `ansys-meshing-prime` package supports Python 3.10 to Python 3.12 on the Windows and Linux
operating systems.


Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/889.documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bump the doc-dependencies group across 1 directory with 7 updates
1 change: 1 addition & 0 deletions doc/changelog.d/899.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix: PyVista deprecation
1 change: 1 addition & 0 deletions doc/changelog.d/900.documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update python version
1 change: 1 addition & 0 deletions doc/changelog.d/902.documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update README.md
4 changes: 3 additions & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"GL09", # Deprecation warning should precede extended summary
"GL10", # reST directives {directives} must be followed by two colons
"SS01", # No summary found
"SS02", # Summary does not start with a capital letter
# "SS02", # Summary does not start with a capital letter
# "SS03", # Summary does not end with a period
"SS04", # Summary contains heading whitespaces
# "SS05", # Summary must start with infinitive verb, not third person
Expand Down Expand Up @@ -175,3 +175,5 @@
"ignore_pattern": "flycheck*",
"thumbnail_size": (350, 350),
}

supress_warnings = ["docutils"]
29 changes: 17 additions & 12 deletions doc/source/getting_started/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,27 @@ For more information on getting a licensed copy of Ansys, visit the `Ansys websi

This table provides compatibility information:

=========================== ===========================
PyPrimeMesh client release Ansys Prime Server release
=========================== ===========================
0.2.x 23.1.0 (2023 R1)
0.3.x 23.1.1 (2023 R1 SP1)
0.4.x 23.2.0 (2023 R2)
0.5.x 24.1.0 (2024 R1)
0.6.x 24.2.0 (2024 R2)
0.7.x 25.1.0 (2025 R1)
=========================== ===========================
+----------------------------+----------------------------+--------------------------+
| PyPrimeMesh client release | Ansys Prime Server release |Supported python versions |
+============================+============================+==========================+
| 0.2.x | 23.1.0 (2023 R1) | 3.7 to 3.11 |
| | | |
| 0.3.x | 23.1.1 (2023 R1 SP1) | 3.7 to 3.11 |
| | | |
| 0.4.x | 23.2.0 (2023 R2) | 3.8 to 3.11 |
| | | |
| 0.5.x | 24.1.0 (2024 R1) | 3.8 to 3.11 |
| | | |
| 0.6.x | 24.2.0 (2024 R2) | 3.8 to 3.11 |
| | | |
| 0.7.x | 25.1.0 (2025 R1) | 3.10 to 3.12 |
+----------------------------+----------------------------+--------------------------+

Installation
------------

The ``ansys-meshing-prime`` package currently supports Python 3.8
to Python 3.11 on the Windows and Linux operating systems.
The ``ansys-meshing-prime`` package currently supports Python 3.10
to Python 3.12 on the Windows and Linux operating systems.

You can install PyPrimeMesh with all dependencies directly from `PyPI <https://pypi.org/>`_ with this command:

Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ doc = [
"ansys-sphinx-theme[autoapi]==1.1.2",
"ansys-tools-visualization-interface==0.4.4",
"jupyter-sphinx==0.5.3",
"numpydoc==1.7.0",
"sphinx==7.2.6",
"numpydoc==1.8.0",
"sphinx==8.0.2",
"sphinx_design==0.6.1",
"pyvista==0.44.1",
"sphinx-autodoc-typehints==2.0.1",
"sphinx-autodoc-typehints==2.4.4",
"sphinx-copybutton==0.5.2",
"sphinx-gallery==0.15.0",
"sphinx-notfound-page==1.0.0",
"sphinx-gallery==0.17.1",
"sphinx-notfound-page==1.0.4",
"sphinxemoji==0.3.1",
]
all = [
Expand Down
6 changes: 3 additions & 3 deletions src/ansys/meshing/prime/core/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def get_face_polydata(
vertices, faces = self._get_vertices_and_surf_faces(face_facet_res, index)
surf = pv.PolyData(vertices, faces)
fcolor = np.array(self.get_face_color(part, ColorByType.ZONE))
colors = np.tile(fcolor, (surf.n_faces, 1))
colors = np.tile(fcolor, (surf.n_faces_strict, 1))
surf["colors"] = colors
surf.disp_mesh = self
has_mesh = True
Expand Down Expand Up @@ -415,7 +415,7 @@ def get_spline_cp_polydata(self, part_id: int, spline_id: int) -> MeshObjectPlot
faces = self.compute_face_list_from_structured_nodes(dim)
surf = pv.PolyData(vertices, faces)
fcolor = np.array([0, 0, 255])
colors = np.tile(fcolor, (surf.n_faces, 1))
colors = np.tile(fcolor, (surf.n_faces_strict, 1))
surf["colors"] = colors
surf.disp_mesh = self
if surf.n_points > 0:
Expand Down Expand Up @@ -443,7 +443,7 @@ def get_spline_surface_polydata(self, part_id: int, spline_id: int) -> MeshObjec
faces = self.compute_face_list_from_structured_nodes(dim)
surf = pv.PolyData(vertices, faces)
fcolor = np.array(color_matrix[1])
colors = np.tile(fcolor, (surf.n_faces, 1))
colors = np.tile(fcolor, (surf.n_faces_strict, 1))
surf["colors"] = colors
surf.disp_mesh = self
if surf.n_points > 0:
Expand Down

0 comments on commit cc00c39

Please sign in to comment.