Skip to content

Commit a1b1dcd

Browse files
Merge branch 'master' into dependabot/pip/requirements/ansys-sphinx-theme-1.2.0
2 parents 0acfac2 + a040949 commit a1b1dcd

20 files changed

+169
-20
lines changed

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ body:
6161
label: Which DPF/Ansys version are you using?
6262
multiple: true
6363
options:
64+
- 'DPF Server 2025.2.pre0'
65+
- 'Ansys 2025 R1'
6466
- 'DPF Server 2025.1.pre0'
6567
- 'Ansys 2024 R2'
6668
- 'DPF Server 2024.2.pre1'

.github/workflows/ci_release.yml

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,22 +73,43 @@ jobs:
7373
name: ${{ steps.wheel.outputs.wheel_name }}
7474
path: dist/${{ steps.wheel.outputs.wheel_name }}
7575

76+
tests_3_9:
77+
uses: ./.github/workflows/tests.yml
78+
with:
79+
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
80+
python_versions: '["3.9"]'
81+
wheel: true
82+
wheelhouse: true
83+
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '.pre0' }}
84+
secrets: inherit
85+
7686
tests:
7787
uses: ./.github/workflows/tests.yml
7888
with:
7989
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
80-
python_versions: '["3.9", "3.10", "3.11"]'
81-
wheel: ${{ matrix.python-version == '3.9' }}
90+
python_versions: '["3.10", "3.11"]'
91+
wheel: false
8292
wheelhouse: true
8393
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '.pre0' }}
8494
secrets: inherit
8595

96+
tests_any_3_9:
97+
uses: ./.github/workflows/tests.yml
98+
with:
99+
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
100+
python_versions: '["3.9"]'
101+
wheel: true
102+
wheelhouse: false
103+
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '.pre0' }}
104+
test_any: true
105+
secrets: inherit
106+
86107
tests_any:
87108
uses: ./.github/workflows/tests.yml
88109
with:
89110
ANSYS_VERSION: ${{ github.event.inputs.ansys_version || '251' }}
90-
python_versions: '["3.9", "3.10", "3.11"]'
91-
wheel: ${{ matrix.python-version == '3.9' }}
111+
python_versions: '["3.10", "3.11"]'
112+
wheel: false
92113
wheelhouse: false
93114
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '.pre0' }}
94115
test_any: true
@@ -211,11 +232,11 @@ jobs:
211232
draft_release:
212233
name: "Draft Release"
213234
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
214-
needs: [style, tests, docs, examples, retro_232, retro_231, retro_222, docker_tests]
235+
needs: [style, tests, tests_3_9, tests_any, tests_any_3_9, docs, examples, retro_232, retro_231, retro_222, docker_tests]
215236
runs-on: ubuntu-latest
216237
steps:
217238
- name: "Download artifacts"
218-
uses: actions/download-artifact@v3
239+
uses: actions/download-artifact@v4
219240

220241
- name: "Display downloaded files"
221242
run: ls -R

.github/workflows/releaser.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ on:
1010
description: 'Release tag'
1111
default: 'latest'
1212
type: string
13-
checkout_ref:
14-
description: 'Ref to checkout for doc index (default to current branch)'
15-
default: ''
16-
type: string
1713

1814
env:
1915
DOCUMENTATION_CNAME: 'dpf.docs.pyansys.com'
@@ -93,6 +89,8 @@ jobs:
9389
token: ${{ secrets.GITHUB_TOKEN }}
9490
doc-artifact-name: HTML-doc-ansys-dpf-core.zip
9591
decompress-artifact: true
92+
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
93+
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
9694

9795
update_ansys_lab_examples:
9896
uses: ./.github/workflows/ansys_lab.yml

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ jobs:
139139
echo "wheel_name=${name[0]}" >> $GITHUB_OUTPUT
140140
141141
- name: "Upload wheel to artifacts"
142-
if: (inputs.wheel == 'true') && !(inputs.test_any && (matrix.os == 'ubuntu-latest') )
142+
if: (inputs.wheel == 'true') && !( (inputs.test_any == 'true') && (matrix.os == 'ubuntu-latest') )
143143
uses: actions/upload-artifact@v4
144144
with:
145145
name: ${{ steps.wheel.outputs.wheel_name }}

examples/10-mesh_operations/13-nodes_in_local_coordinate_system.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
# Import necessary modules
4343
from ansys.dpf import core as dpf
4444
from ansys.dpf.core import examples
45+
from ansys.dpf.gate.errors import DPFServerException
4546

4647

4748
###############################################################################
@@ -59,7 +60,7 @@
5960
# Starting with DPF 2025.1.pre1
6061
cs = dpf.operators.result.coordinate_system()
6162
cs.inputs.data_sources.connect(model)
62-
except (KeyError, ansys.dpf.gate.errors.DPFServerException) as e:
63+
except (KeyError, DPFServerException) as e:
6364
# For previous DPF versions
6465
cs = model.operator(r"mapdl::rst::CS")
6566

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ dependencies = [
3030
"google-api-python-client",
3131
"grpcio >=1.63.0",
3232
"importlib-metadata >=4.0",
33-
"numpy<2",
33+
"numpy",
3434
"packaging",
3535
"protobuf",
3636
"psutil",

requirements/requirements_docs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pytest-sphinx==0.6.3
99
pyvista==0.44.1
1010
sphinx==7.1.0
1111
sphinx-copybutton==0.5.2
12-
sphinx-gallery==0.17.1
12+
sphinx-gallery==0.18.0
1313
sphinx-notfound-page==1.0.4
1414
sphinx-reredirects==0.1.3
1515
sphinx_design==0.6.1
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
importlib-metadata==8.5.0
2-
numpy==2.1.2
2+
numpy==2.1.3
33
packaging==24.0
44
psutil==6.1.0
5-
tqdm==4.66.1
5+
tqdm==4.67.0

src/ansys/dpf/core/_version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class ServerToAnsysVersion:
4343
"8.2": "2024R2",
4444
"9.0": "2025R1",
4545
"9.1": "2025R1",
46+
"10.0": "2025R2",
4647
}
4748

4849
def __getitem__(self, item):

src/ansys/dpf/core/custom_fields_container.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ class BodyFieldsContainer(FieldsContainer):
294294
>>> model = dpf.Model(examples.download_all_kinds_of_complexity_modal())
295295
>>> fc = model.results.displacement.on_all_time_freqs.split_by_body.eval()
296296
>>> fc.get_mat_scoping().ids[3]
297-
45
297+
np.int32(45)
298298
>>> len(fc.get_fields_by_mat_id(45))
299299
45
300300
>>> f_time_2 = fc.get_field_by_mat_id(45, timeid=2)

0 commit comments

Comments
 (0)