Skip to content

Commit

Permalink
Merge with main
Browse files Browse the repository at this point in the history
  • Loading branch information
janvonrickenbach committed Sep 26, 2024
2 parents 18bc00f + 3f3f2f5 commit 80632f5
Show file tree
Hide file tree
Showing 14 changed files with 68 additions and 25 deletions.
24 changes: 24 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
changelog:
exclude:
authors:
- dependabot[bot]
categories:
- title: Enhancements
labels:
- enhancement
- title: Bug fixes
labels:
- bug
- title: Documentation
labels:
- documentation
- title: Examples
labels:
- examples
- title: CI/CD
labels:
- CI/CD
- title: Maintenance
labels:
- maintenance
- dependencies
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- uses: actions/checkout@v4

- name: "Setup Python"
uses: actions/setup-python@v5.1.0
uses: actions/setup-python@v5.2.0
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}

Expand Down Expand Up @@ -97,6 +97,7 @@ jobs:

- name: "Test Docstrings"
uses: ansys/pydpf-actions/[email protected]
if: ${{ matrix.python-version == env.MAIN_PYTHON_VERSION }}
with:
MODULE: ${{env.MODULE}}
PACKAGE_NAME: ${{env.PACKAGE_NAME}}
Expand Down Expand Up @@ -208,7 +209,7 @@ jobs:
needs: [docs]
steps:
- name: "Upload development documentation"
uses: ansys/actions/doc-deploy-dev@v6
uses: ansys/actions/doc-deploy-dev@v7
with:
cname: ${{ env.DOCUMENTATION_CNAME }}
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- uses: actions/checkout@v4

- name: "Setup Python"
uses: actions/setup-python@v5.1.0
uses: actions/setup-python@v5.2.0
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Running documentation style checks"
uses: ansys/actions/doc-style@v6
uses: ansys/actions/doc-style@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -81,7 +81,7 @@ jobs:
echo "ANSYSLMD_LICENSE_FILE=1055@${{ secrets.LICENSE_SERVER }}" >> $GITHUB_ENV
- name: Setup Python
uses: actions/setup-python@v5.1.0
uses: actions/setup-python@v5.2.0
with:
python-version: ${{ inputs.python_version }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
echo "ANSYSLMD_LICENSE_FILE=1055@${{ secrets.LICENSE_SERVER }}" >> $GITHUB_ENV
- name: Setup Python
uses: actions/setup-python@v5.1.0
uses: actions/setup-python@v5.2.0
with:
python-version: ${{ matrix.python-version }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
needs: get_latest_tag
steps:
- name: "Download Release Assets"
uses: robinraju/release-downloader@v1.10
uses: robinraju/release-downloader@v1.11
with:
tag: ${{ github.event.inputs.release_tag || needs.get_latest_tag.outputs.version }}
fileName: "*.whl"
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
path: HTML-doc-ansys-dpf-post.zip

- name: "Deploy the stable documentation"
uses: ansys/actions/doc-deploy-stable@v6
uses: ansys/actions/doc-deploy-stable@v7
with:
cname: ${{ env.DOCUMENTATION_CNAME }}
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:
echo "VERSION_MEILI=$VERSION_MEILI" >> $GITHUB_ENV
- name: "Deploy the latest documentation index"
uses: ansys/actions/doc-deploy-index@v6
uses: ansys/actions/doc-deploy-index@v7
with:
cname: ${{ env.DOCUMENTATION_CNAME }}/version/${{ env.VERSION }}
index-name: pydpf-post-v${{ env.VERSION_MEILI }}
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements_build.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
wheel==0.43.0
wheel==0.44.0
22 changes: 11 additions & 11 deletions requirements/requirements_docs.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
pypandoc==1.13
imageio==2.34.0
numpydoc==1.6.0
imageio-ffmpeg==0.4.7
imageio==2.35.1
numpydoc==1.8.0
imageio-ffmpeg==0.5.1
Sphinx<7.2.0; python_version == '3.8'
Sphinx==7.2.6; python_version >= '3.9'
sphinx-autobuild==2024.4.16
Sphinx==8.0.2; python_version >= '3.9'
sphinxcontrib-napoleon==0.7
sphinxcontrib-websupport==1.2.7
sphinxcontrib-websupport==2.0.0
pytest-sphinx==0.6.3
sphinx-notfound-page==1.0.0
sphinx-notfound-page==1.0.4
sphinx-copybutton==0.5.0
sphinx-gallery==0.16.0
ansys_sphinx_theme==0.16.0
sphinx-autodoc-typehints==2.0.0
pyvista==0.43.8
sphinx-gallery==0.17.1
ansys_sphinx_theme==1.0.11
sphinx-autodoc-typehints==2.4.4; python_version == '3.8'
sphinx-autodoc-typehints==2.4.4; python_version >= '3.9'
pyvista==0.44.1
8 changes: 4 additions & 4 deletions requirements/requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
coverage==7.4.3
pytest-cov==4.0.0
coverage==7.6.1
pytest-cov==5.0.0
pytest-rerunfailures==14.0
pytest==8.0.1
pyvista==0.43.8
pytest==8.3.3
pyvista==0.44.1
1 change: 1 addition & 0 deletions src/ansys/dpf/post/harmonic_mechanical_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def _get_result_workflow(
)
_connect_initial_results_inputs(
initial_result_workflow=result_workflows.initial_result_workflow,
split_by_body_workflow=result_workflows.split_by_bodies_workflow,
selection=selection,
data_sources=self._model.metadata.data_sources,
streams_provider=self._model.metadata.streams_provider,
Expand Down
1 change: 1 addition & 0 deletions src/ansys/dpf/post/modal_mechanical_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def _get_result_workflow(
)
_connect_initial_results_inputs(
initial_result_workflow=result_workflows.initial_result_workflow,
split_by_body_workflow=result_workflows.split_by_bodies_workflow,
selection=selection,
data_sources=self._model.metadata.data_sources,
streams_provider=self._model.metadata.streams_provider,
Expand Down
4 changes: 4 additions & 0 deletions src/ansys/dpf/post/static_mechanical_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def _get_result_workflow(
selection: Union[Selection, None] = None,
expand_cyclic: Union[bool, List[Union[int, List[int]]]] = True,
phase_angle_cyclic: Union[float, None] = None,
average_across_bodies: bool = True,
) -> (core.Workflow, Union[str, list[str], None], str):
"""Generate (without evaluating) the Workflow to extract results."""
result_workflow_inputs = _create_result_workflow_inputs(
Expand All @@ -50,6 +51,7 @@ def _get_result_workflow(
selection=selection,
create_operator_callable=self._model.operator,
mesh_provider=self._model.metadata.mesh_provider,
average_across_bodies=average_across_bodies,
)
result_workflows = _create_result_workflows(
server=self._model._server,
Expand Down Expand Up @@ -114,6 +116,7 @@ def _get_result(
phase_angle_cyclic: Union[float, None] = None,
external_layer: Union[bool, List[int]] = False,
skin: Union[bool, List[int]] = False,
average_across_bodies: bool = True,
) -> DataFrame:
"""Extract results from the simulation.
Expand Down Expand Up @@ -226,6 +229,7 @@ def _get_result(
selection=selection,
expand_cyclic=expand_cyclic,
phase_angle_cyclic=phase_angle_cyclic,
average_across_bodies=average_across_bodies,
)

# Evaluate the workflow
Expand Down
1 change: 1 addition & 0 deletions src/ansys/dpf/post/transient_mechanical_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def _get_result_workflow(
)
_connect_initial_results_inputs(
initial_result_workflow=result_workflows.initial_result_workflow,
split_by_body_workflow=result_workflows.split_by_bodies_workflow,
selection=selection,
data_sources=self._model.metadata.data_sources,
streams_provider=self._model.metadata.streams_provider,
Expand Down
11 changes: 11 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,17 @@ def grpc_server():
server.shutdown()


@pytest.fixture(scope="session", autouse=True)
def license_context():
if SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_6_2:
with core.LicenseContextManager(
increment_name="preppost", license_timeout_in_seconds=1.0
):
yield
else:
yield


SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_9_0 = meets_version(
get_server_version(core._global_server()), "9.0"
)
Expand Down

0 comments on commit 80632f5

Please sign in to comment.