Skip to content

Commit

Permalink
Merge branch 'dgupta/trial' into dgupta/1134558_252
Browse files Browse the repository at this point in the history
  • Loading branch information
guptadivya1501 committed Oct 23, 2024
2 parents 8dab10a + 3ad9835 commit 009e8bb
Show file tree
Hide file tree
Showing 129 changed files with 3,602 additions and 3,865 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
name: "Style Check"
runs-on: ubuntu-latest
steps:
- uses: ansys/actions/code-style@v7
- uses: ansys/actions/code-style@v8
with:
use-python-cache: false

Expand Down Expand Up @@ -161,7 +161,7 @@ jobs:
needs: [docs]
steps:
- name: "Upload development documentation"
uses: ansys/actions/doc-deploy-dev@v7
uses: ansys/actions/doc-deploy-dev@v8
with:
cname: ${{ env.DOCUMENTATION_CNAME }}
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -174,7 +174,7 @@ jobs:
needs: upload-development-docs
steps:
- name: "Deploy the latest documentation index"
uses: ansys/actions/doc-deploy-index@v7
uses: ansys/actions/doc-deploy-index@v8
with:
cname: ${{ env.DOCUMENTATION_CNAME }}/version/dev
index-name: pydpf-core-vdev
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 @@ -43,7 +43,7 @@ jobs:
name: "Style Check"
runs-on: ubuntu-latest
steps:
- uses: ansys/actions/code-style@v6
- uses: ansys/actions/code-style@v8
with:
use-python-cache: false

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

Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
uses: pyvista/setup-headless-display-action@v2

- name: "Setup Graphviz"
uses: ts-graphviz/setup-graphviz@v1
uses: ts-graphviz/setup-graphviz@v2

- name: "Install OS packages"
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
path: HTML-doc-ansys-dpf-core.zip

- name: "Deploy the stable documentation"
uses: ansys/actions/doc-deploy-stable@v7
uses: ansys/actions/doc-deploy-stable@v8
with:
cname: ${{ env.DOCUMENTATION_CNAME }}
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
echo "VERSION_MEILI=$VERSION_MEILI" >> $GITHUB_ENV
- name: "Deploy the latest documentation index"
uses: ansys/actions/doc-deploy-index@v7
uses: ansys/actions/doc-deploy-index@v8
with:
cname: ${{ env.DOCUMENTATION_CNAME }}/version/${{ env.VERSION }}
index-name: pydpf-core-v${{ env.VERSION_MEILI }}
Expand Down
26 changes: 15 additions & 11 deletions .github/workflows/test_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ jobs:
echo "RERUNS=--reruns 2 --reruns-delay 1" >> $GITHUB_ENV
- name: "Test API"
uses: nick-fields/retry@v2
uses: nick-fields/retry@v3
with:
timeout_minutes: 10
max_attempts: 2
Expand All @@ -124,7 +124,7 @@ jobs:
pytest $DEBUG $COVERAGE $RERUNS --junitxml=tests/junit/test-results.xml tests/.
- name: "Test API test_launcher"
uses: nick-fields/retry@v2
uses: nick-fields/retry@v3
with:
timeout_minutes: 2
max_attempts: 2
Expand All @@ -133,7 +133,7 @@ jobs:
pytest $DEBUG $COVERAGE $RERUNS --junitxml=tests/junit/test-results2.xml test_launcher/.
- name: "Test API test_server"
uses: nick-fields/retry@v2
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 2
Expand All @@ -142,7 +142,7 @@ jobs:
pytest $DEBUG $COVERAGE $RERUNS --junitxml=tests/junit/test-results3.xml test_server/.
- name: "Test API test_local_server"
uses: nick-fields/retry@v2
uses: nick-fields/retry@v3
with:
timeout_minutes: 2
max_attempts: 2
Expand All @@ -151,7 +151,7 @@ jobs:
pytest $DEBUG $COVERAGE $RERUNS --junitxml=tests/junit/test-results4.xml test_local_server/.
- name: "Test API test_multi_server"
uses: nick-fields/retry@v2
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 2
Expand All @@ -160,7 +160,7 @@ jobs:
pytest $DEBUG $COVERAGE $RERUNS --junitxml=tests/junit/test-results5.xml test_multi_server/.
- name: "Test API test_remote_workflow"
uses: nick-fields/retry@v2
uses: nick-fields/retry@v3
with:
timeout_minutes: 2
max_attempts: 3
Expand All @@ -169,7 +169,7 @@ jobs:
pytest $DEBUG $COVERAGE $RERUNS --junitxml=tests/junit/test-results6.xml test_remote_workflow/.
- name: "Test API test_remote_operator"
uses: nick-fields/retry@v2
uses: nick-fields/retry@v3
with:
timeout_minutes: 2
max_attempts: 2
Expand All @@ -178,7 +178,7 @@ jobs:
pytest $DEBUG $COVERAGE $RERUNS --junitxml=tests/junit/test-results7.xml test_remote_operator/.
- name: "Test API test_workflow"
uses: nick-fields/retry@v2
uses: nick-fields/retry@v3
with:
timeout_minutes: 3
max_attempts: 3
Expand All @@ -187,7 +187,7 @@ jobs:
pytest $DEBUG $COVERAGE $RERUNS --junitxml=tests/junit/test-results8.xml test_workflow/.
- name: "Test API test_service"
uses: nick-fields/retry@v2
uses: nick-fields/retry@v3
with:
timeout_minutes: 3
max_attempts: 2
Expand All @@ -196,7 +196,7 @@ jobs:
pytest $DEBUG $COVERAGE $RERUNS --junitxml=tests/junit/test-results9.xml test_service/.
- name: "Test Operators"
uses: nick-fields/retry@v2
uses: nick-fields/retry@v3
with:
timeout_minutes: 3
max_attempts: 2
Expand All @@ -221,4 +221,8 @@ jobs:
timeout-minutes: 5

- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }} # required
name: ${{ env.PACKAGE_NAME }}_${{ matrix.python-version }}_${{ matrix.os }}_pytest_${{ inputs.ANSYS_VERSION }}_docker.xml
flags: docker,${{ inputs.ANSYS_VERSION }},${{ matrix.os }},${{ matrix.python-version }}
24 changes: 14 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ jobs:
uses: ansys/pydpf-actions/kill-dpf-servers@v2.3

- name: "Test API test_launcher"
uses: nick-fields/retry@v2
uses: nick-fields/retry@v3
with:
timeout_minutes: 2
max_attempts: 2
Expand All @@ -244,7 +244,7 @@ jobs:
uses: ansys/pydpf-actions/kill-dpf-servers@v2.3

- name: "Test API test_server"
uses: nick-fields/retry@v2
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 2
Expand All @@ -256,7 +256,7 @@ jobs:
uses: ansys/pydpf-actions/kill-dpf-servers@v2.3

- name: "Test API test_local_server"
uses: nick-fields/retry@v2
uses: nick-fields/retry@v3
with:
timeout_minutes: 2
max_attempts: 2
Expand All @@ -268,7 +268,7 @@ jobs:
uses: ansys/pydpf-actions/kill-dpf-servers@v2.3

- name: "Test API test_multi_server"
uses: nick-fields/retry@v2
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 2
Expand All @@ -280,7 +280,7 @@ jobs:
uses: ansys/pydpf-actions/kill-dpf-servers@v2.3

- name: "Test API test_remote_workflow"
uses: nick-fields/retry@v2
uses: nick-fields/retry@v3
with:
timeout_minutes: 4
max_attempts: 3
Expand All @@ -301,7 +301,7 @@ jobs:
uses: ansys/pydpf-actions/kill-dpf-servers@v2.3

- name: "Test API test_workflow"
uses: nick-fields/retry@v2
uses: nick-fields/retry@v3
with:
timeout_minutes: 3
max_attempts: 4
Expand All @@ -314,7 +314,7 @@ jobs:
uses: ansys/pydpf-actions/kill-dpf-servers@v2.3

- name: "Test API test_service"
uses: nick-fields/retry@v2
uses: nick-fields/retry@v3
with:
timeout_minutes: 2
max_attempts: 2
Expand All @@ -337,7 +337,7 @@ jobs:
uses: ansys/pydpf-actions/kill-dpf-servers@v2.3

- name: "Test API test_custom_type_field"
uses: nick-fields/retry@v2
uses: nick-fields/retry@v3
with:
timeout_minutes: 2
max_attempts: 2
Expand All @@ -349,7 +349,7 @@ jobs:
uses: ansys/pydpf-actions/kill-dpf-servers@v2.3

- name: "Test Operators"
uses: nick-fields/retry@v2
uses: nick-fields/retry@v3
with:
timeout_minutes: 2
max_attempts: 2
Expand All @@ -367,4 +367,8 @@ jobs:
path: tests/junit/test-results.xml

- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }} # required
name: ${{ env.PACKAGE_NAME }}_${{ matrix.python-version }}_${{ matrix.os }}_pytest_${{ inputs.ANSYS_VERSION }}${{ inputs.test_any == 'true' && '_any' || '' }}.xml
flags: ${{ inputs.ANSYS_VERSION }},${{ matrix.os }},${{ matrix.python-version }}${{ inputs.test_any == 'true' && ',any' || '' }}
12 changes: 12 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This is the list of PyDPF-Core's significant contributors.
#
# This file does not necessarily list everyone who has contributed code.
#
# For contributions made under a Corporate CLA, the organization is
# added to this file.
#
# If you have contributed to the repository and want to be added to this file,
# submit a request.
#
#
ANSYS, Inc.
2 changes: 1 addition & 1 deletion doc/.vale.ini
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ Google.Headings = NO
# Format-specific settings appear
# under a user-provided "glob"
# pattern.
TokenIgnores = (:(func|class|meth|attr|py):`(?:.|\n)*?`)|(<.*>)
TokenIgnores = (:(func|class|meth|attr|py|py:class|py:meth):`(?:.|\n)*?`)|(<.*>)|
16 changes: 8 additions & 8 deletions doc/source/_static/dpf_operators.html

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
# Starting with DPF 2025.1.pre1
cs = dpf.operators.result.coordinate_system()
cs.inputs.data_sources.connect(model)
except KeyError:
except (KeyError, ansys.dpf.gate.errors.DPFServerException) as e:
# For previous DPF versions
cs = model.operator(r"mapdl::rst::CS")

Expand Down
4 changes: 2 additions & 2 deletions requirements/requirements_build.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
black==24.8.0
build==1.2.2
black==24.10.0
build==1.2.2.post1
chevron==0.14.0
wheel==0.44.0
4 changes: 2 additions & 2 deletions requirements/requirements_docs.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
ansys_sphinx_theme==1.0.10
enum-tools[sphinx]==0.12.0
graphviz==0.20.1
imageio==2.35.1
imageio==2.36.0
imageio-ffmpeg==0.5.1
nbsphinx==0.9.5
pypandoc==1.13
pypandoc==1.14
pytest-sphinx==0.6.3
pyvista==0.44.1
sphinx==7.1.0
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements_install.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
importlib-metadata==8.5.0
numpy==2.0.0
numpy==2.1.2
packaging==24.0
psutil==6.0.0
tqdm==4.66.1
4 changes: 2 additions & 2 deletions requirements/requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ansys-platform-instancemanagement==1.1.2
coverage==7.6.1
imageio==2.35.1
imageio==2.36.0
imageio-ffmpeg==0.5.1
pytest==7.4.2
pytest==8.3.3
pytest-cov==5.0.0
pytest-order==1.3.0
pytest-rerunfailures==14.0
Expand Down
1 change: 0 additions & 1 deletion src/ansys/dpf/core/operators/math/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
from .modal_damping_ratio import modal_damping_ratio
from .modal_participation import modal_participation
from .modal_superposition import modal_superposition
from .mode_contribution import mode_contribution
from .modulus import modulus
from .nodal_density import nodal_density
from .norm import norm
Expand Down
Loading

0 comments on commit 009e8bb

Please sign in to comment.