Skip to content

Commit bccbc3d

Browse files
committed
activate venv
1 parent 5bffcaf commit bccbc3d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/geometry-mechanical-dpf.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ jobs:
127127
ANSYS_WORKBENCH_LOGGING: 0
128128
ANSYS_WORKBENCH_LOGGING_FILTER_LEVEL: 2
129129
run: |
130+
. /env/bin/activate
130131
xvfb-run mechanical-env python geometry-mechanical-dpf/02_mechanical.py
131132
132133
- name: Store the outputs

geometry-mechanical-dpf/02_mechanical.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
# -- Start PyMechanical app --
3131
#
3232
app = mech.App()
33-
app.update_globals(globals())
33+
globals().update(mech.global_variables(app, True))
3434
print(app)
3535

3636
# -- Parameters --
@@ -63,7 +63,7 @@ def display_image(image_name):
6363
# -- Import geometry --
6464
#
6565
# Reads geometry file and displa
66-
geometry_path = modeling_file = Path(OUTPUT_DIR, "pcb.mechdb")
66+
geometry_path = Path(OUTPUT_DIR, "pcb.mechdb")
6767
geometry_import_group = Model.GeometryImportGroup
6868
geometry_import = geometry_import_group.AddGeometryImport()
6969
geometry_import_format = Ansys.Mechanical.DataModel.Enums.GeometryImportPreference.Format.Automatic

0 commit comments

Comments
 (0)