Skip to content

Commit

Permalink
Merge branch 'master' into edit_animate_example
Browse files Browse the repository at this point in the history
  • Loading branch information
PProfizi authored Aug 30, 2023
2 parents 6e9fc2b + 57b6b54 commit 9ff665d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,5 @@ jobs:
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '' }}
custom-requirements: ${{ github.event.inputs.custom-requirements || 'requirements/requirements_dev.txt' }}
custom-wheels: ${{ github.event.inputs.custom-wheels || './dpf-standalone/v241/dist' }}
test_docstrings: "true"
secrets: inherit
1 change: 1 addition & 0 deletions .github/workflows/ci_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ jobs:
with:
ANSYS_VERSION: "241"
standalone_suffix: ${{ github.event.inputs.standalone_branch_suffix || '.pre0' }}
test_docstrings: "true"
secrets: inherit

pydpf-post_232:
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/pydpf-post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ on:
required: false
type: string
default: ''
test_docstrings:
description: "whether to run doctest"
required: false
type: string
default: "false"
# Can be called manually
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -53,6 +58,11 @@ on:
required: false
type: string
default: ''
test_docstrings:
description: "whether to run doctest"
required: false
type: string
default: "false"

env:
PACKAGE_NAME: ansys-dpf-core
Expand Down Expand Up @@ -141,6 +151,7 @@ jobs:
MODULE: post
PACKAGE_NAME: ansys-dpf-post
working-directory: pydpf-post/src
if: inputs.test_docstrings == 'true'

- name: "Test API"
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions tests/test_lsdyna.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def test_lsdyna_generic(d3plot_files):
global_velocity_model = model.results.global_velocity().eval()

assert np.allclose(global_velocity_fc[0].data[0], global_velocity_model[0].data[0])
assert global_velocity_fc[0].unit == "mm*Hz"
assert global_velocity_model[0].unit == "mm*Hz"
# assert global_velocity_fc[0].unit == "mm*Hz"
# assert global_velocity_model[0].unit == "mm*Hz"

# ------------------------------------------------- Initial Coordinates

Expand Down

0 comments on commit 9ff665d

Please sign in to comment.