Skip to content

Commit fcac290

Browse files
authored
fix: failing workflows (#148)
1 parent 5c72c47 commit fcac290

13 files changed

+28
-19
lines changed

doc/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ myst-parser==4.0.1
44
sphinx_design==0.6.1
55
sphinx==8.2.3
66
sphinx-autobuild==2025.8.25
7-
sphinx-autodoc-typehints==3.6.2
7+
sphinx-autodoc-typehints==3.5.2
88
sphinxcontrib-websupport==2.0.0
99
sphinx-copybutton==0.5.2
1010
sphinx-gallery==0.20.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
ansys-geometry-core[all]==0.7.6
1+
ansys-geometry-core[all]==0.14.2
22
ansys-mechanical-core==0.11.34
33
ansys-dpf-core[plotting]==0.12.2
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
ansys-geometry-core[all]==0.7.6
1+
ansys-geometry-core[all]==0.14.2
22
ansys-mechanical-core==0.11.34
33
ansys-dpf-core[plotting]==0.12.2
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ansys-geometry-core[all]==0.9.2
1+
ansys-geometry-core[all]==0.14.2
22
ansys-mechanical-core==0.11.34
33
ansys-dpf-core[plotting]==0.13.4
44
ansys-tools-visualization-interface<0.10

geometry-mechanical-dpf/wf_gmd_01_geometry.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
from pathlib import Path
3737

3838
from ansys.geometry.core import launch_modeler
39-
from ansys.geometry.core.connection import GEOMETRY_SERVICE_DOCKER_IMAGE, GeometryContainers
39+
from ansys.geometry.core.connection import GeometryContainers
40+
import ansys.geometry.core.connection.defaults as pygeom_defaults
4041
from ansys.geometry.core.designer import DesignFileFormat
4142
from ansys.geometry.core.math import Plane, Point2D, Point3D, UnitVector3D
4243
from ansys.geometry.core.misc import DEFAULT_UNITS, UNITS
@@ -50,12 +51,14 @@
5051
# If you are running this script outside of a workflow, you can ignore this section.
5152
#
5253
image = None
54+
transport_mode = None
5355
if "ANSYS_GEOMETRY_RELEASE" in os.environ:
5456
image_tag = os.environ["ANSYS_GEOMETRY_RELEASE"]
5557
for geom_services in GeometryContainers:
56-
if image_tag == f"{GEOMETRY_SERVICE_DOCKER_IMAGE}:{geom_services.value[2]}":
58+
if image_tag == f"{pygeom_defaults.GEOMETRY_SERVICE_DOCKER_IMAGE}:{geom_services.value[2]}":
5759
print(f"Using {image_tag} image")
5860
image = geom_services
61+
transport_mode = "insecure"
5962
break
6063

6164
# sphinx_gallery_start_ignore
@@ -88,7 +91,7 @@
8891
# operations.
8992
#
9093

91-
modeler = launch_modeler(image=image)
94+
modeler = launch_modeler(image=image, transport_mode=transport_mode)
9295
print(modeler)
9396

9497
###############################################################################
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
ansys-geometry-core[all]==0.7.6
1+
ansys-geometry-core[all]==0.14.2
22
ansys-fluent-core==0.35.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
ansys-geometry-core[all]==0.7.6
1+
ansys-geometry-core[all]==0.14.2
22
ansys-fluent-core==0.35.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
ansys-geometry-core[all]==0.9.2
1+
ansys-geometry-core[all]==0.14.2
22
ansys-fluent-core==0.35.0
33
ansys-tools-visualization-interface<0.10

geometry-mesh-fluent/wf_gmf_01_geometry.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
from typing import List, Union
4141

4242
from ansys.geometry.core import launch_modeler
43-
from ansys.geometry.core.connection import GEOMETRY_SERVICE_DOCKER_IMAGE, GeometryContainers
43+
from ansys.geometry.core.connection import GeometryContainers
44+
import ansys.geometry.core.connection.defaults as pygeom_defaults
4445
from ansys.geometry.core.math import Plane, Point2D, Point3D
4546
from ansys.geometry.core.plotting import GeometryPlotter
4647
from ansys.geometry.core.sketch import Sketch
@@ -54,12 +55,14 @@
5455
# If you are running this script outside of a workflow, you can ignore this section.
5556
#
5657
image = None
58+
transport_mode = None
5759
if "ANSYS_GEOMETRY_RELEASE" in os.environ:
5860
image_tag = os.environ["ANSYS_GEOMETRY_RELEASE"]
5961
for geom_services in GeometryContainers:
60-
if image_tag == f"{GEOMETRY_SERVICE_DOCKER_IMAGE}:{geom_services.value[2]}":
62+
if image_tag == f"{pygeom_defaults.GEOMETRY_SERVICE_DOCKER_IMAGE}:{geom_services.value[2]}":
6163
print(f"Using {image_tag} image")
6264
image = geom_services
65+
transport_mode = "insecure"
6366
break
6467

6568
# sphinx_gallery_start_ignore
@@ -236,7 +239,7 @@ def naca_airfoil_4digits(number: Union[int, str], n_points: int = 200) -> List[P
236239
#
237240

238241
# Instantiate the modeler
239-
modeler = launch_modeler(image=image)
242+
modeler = launch_modeler(image=image, transport_mode=transport_mode)
240243
print(modeler)
241244

242245
###############################################################################
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
ansys-geometry-core[all]==0.7.6
1+
ansys-geometry-core[all]==0.14.2
22
ansys-meshing-prime==0.5.1

0 commit comments

Comments
 (0)