Skip to content

Commit e6a9cc9

Browse files
Merge branch 'main' into feat/prepare_tools_migration
2 parents 1d5052a + ae82b0c commit e6a9cc9

File tree

9 files changed

+32
-5
lines changed

9 files changed

+32
-5
lines changed

.github/workflows/ci_cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ jobs:
293293
retention-days: 7
294294

295295
- name: Upload coverage to Codecov
296-
uses: codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5.4.0
296+
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
297297
if: matrix.docker-image == 'core-windows-latest'
298298
env:
299299
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/nightly_docker_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ jobs:
164164
run: docker image prune -f
165165

166166
- name: Microsoft Teams Notification
167-
uses: skitionek/notify-microsoft-teams@fab6aca2609ba706ebc981d066278d47ab4af0fc # v1.0.9
167+
uses: skitionek/notify-microsoft-teams@755c127ef3757945e5e97508914103d76ef7a925 # v1.0.9
168168
if: failure()
169169
with:
170170
webhook_url: ${{ secrets.MSTEAMS_WEBHOOK }}
@@ -230,7 +230,7 @@ jobs:
230230
docker rm ${{ env.GEO_CONT_NAME }}
231231
232232
- name: Microsoft Teams Notification
233-
uses: skitionek/notify-microsoft-teams@fab6aca2609ba706ebc981d066278d47ab4af0fc # v1.0.9
233+
uses: skitionek/notify-microsoft-teams@755c127ef3757945e5e97508914103d76ef7a925 # v1.0.9
234234
if: failure()
235235
with:
236236
webhook_url: ${{ secrets.MSTEAMS_WEBHOOK }}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bump the actions group with 2 updates

doc/changelog.d/1916.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
is_suppressed is not available until 25R2
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
update CHANGELOG for v0.8.3
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
update CHANGELOG for v0.9.2

doc/source/changelog.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,14 @@ This document contains the release notes for the PyAnsys Geometry project.
414414
- `#1833 <https://github.com/ansys/pyansys-geometry/pull/1833>`_
415415

416416

417+
`0.9.2 <https://github.com/ansys/pyansys-geometry/releases/tag/v0.9.2>`_ - April 16, 2025
418+
=========================================================================================
419+
420+
Fixed
421+
^^^^^
422+
423+
- is_suppressed is not available until 25R2 `#1916 <https://github.com/ansys/pyansys-geometry/pull/1916>`_
424+
417425
`0.9.1 <https://github.com/ansys/pyansys-geometry/releases/tag/v0.9.1>`_ - 2025-02-28
418426
=====================================================================================
419427

@@ -522,6 +530,14 @@ Test
522530
- set body name `#1727 <https://github.com/ansys/pyansys-geometry/pull/1727>`_
523531
- activate 8 linux tests `#1745 <https://github.com/ansys/pyansys-geometry/pull/1745>`_
524532

533+
`0.8.3 <https://github.com/ansys/pyansys-geometry/releases/tag/v0.8.3>`_ - April 16, 2025
534+
=========================================================================================
535+
536+
Fixed
537+
^^^^^
538+
539+
- is_suppressed is not available until 25R2 `#1916 <https://github.com/ansys/pyansys-geometry/pull/1916>`_
540+
525541
`0.8.2 <https://github.com/ansys/pyansys-geometry/releases/tag/v0.8.2>`_ - 2025-01-29
526542
=====================================================================================
527543

src/ansys/geometry/core/designer/body.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,7 @@ def fill_style(self, value: FillStyle): # noqa: D102
853853
self.set_fill_style(value)
854854

855855
@property
856+
@min_backend_version(25, 2, 0)
856857
def is_suppressed(self) -> bool: # noqa: D102
857858
response = self._grpc_client.services.bodies.is_suppressed(id=self.id)
858859
return response.get("result")

src/ansys/geometry/core/plotting/plotter.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
from ansys.geometry.core.designer.design import Design
4545
from ansys.geometry.core.designer.designpoint import DesignPoint
4646
from ansys.geometry.core.designer.face import Face
47+
from ansys.geometry.core.errors import GeometryRuntimeError
4748
from ansys.geometry.core.logger import LOG
4849
from ansys.geometry.core.math.frame import Frame
4950
from ansys.geometry.core.math.plane import Plane
@@ -248,8 +249,13 @@ def add_body(self, body: Body, merge: bool = False, **plotting_options: dict | N
248249
Keyword arguments. For allowable keyword arguments,
249250
see the :meth:`Plotter.add_mesh <pyvista.Plotter.add_mesh>` method.
250251
"""
251-
if body.is_suppressed:
252-
return
252+
try:
253+
if body.is_suppressed:
254+
return
255+
except GeometryRuntimeError: # pragma: no cover
256+
# For backward compatibility with older versions of PyAnsys Geometry
257+
# Inserted in 25R2
258+
pass
253259

254260
if self.use_service_colors:
255261
faces = body.faces

0 commit comments

Comments
 (0)