Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyansys to ansys actions #399

Merged
merged 3 commits into from
May 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
echo "ANSYSLMD_LICENSE_FILE=1055@${{ secrets.LICENSE_SERVER }}" >> $GITHUB_ENV

- name: "Build Package"
uses: pyansys/pydpf-actions/[email protected]
uses: ansys/pydpf-actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
ANSYS_VERSION: ${{env.ANSYS_VERSION}}
Expand All @@ -86,7 +86,7 @@ jobs:
standalone_suffix: ${{ inputs.standalone_suffix }}

- name: "Prepare Testing Environment"
uses: pyansys/pydpf-actions/[email protected]
uses: ansys/pydpf-actions/[email protected]
with:
DEBUG: true

Expand All @@ -95,7 +95,7 @@ jobs:
run: pip list

- name: "Test Docstrings"
uses: pyansys/pydpf-actions/[email protected]
uses: ansys/pydpf-actions/[email protected]
with:
MODULE: ${{env.MODULE}}
PACKAGE_NAME: ${{env.PACKAGE_NAME}}
Expand All @@ -108,7 +108,7 @@ jobs:
pytest $DEBUG --cov=ansys.dpf.${{env.MODULE}} --cov-report=xml --cov-report=html --cov-append --log-level=ERROR --junitxml=junit/test-results.xml --reruns 2 .

- name: "Kill all servers"
uses: pyansys/pydpf-actions/[email protected]
uses: ansys/pydpf-actions/[email protected]
if: always()

- name: "Upload Test Results"
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
echo "ANSYSLMD_LICENSE_FILE=1055@${{ secrets.LICENSE_SERVER }}" >> $GITHUB_ENV

- name: "Build Package"
uses: pyansys/pydpf-actions/[email protected]
uses: ansys/pydpf-actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
ANSYS_VERSION: ${{matrix.ANSYS_VERSION}}
Expand All @@ -162,7 +162,7 @@ jobs:
if: matrix.ANSYS_VERSION == '221'

- name: "Prepare Testing Environment"
uses: pyansys/pydpf-actions/[email protected]
uses: ansys/pydpf-actions/[email protected]
with:
DEBUG: true

Expand All @@ -177,7 +177,7 @@ jobs:
pytest $DEBUG --cov=ansys.dpf.${{env.MODULE}} --cov-report=xml --cov-report=html --cov-append --log-level=ERROR --junitxml=junit/test-results.xml --reruns 2 .

- name: "Kill all servers"
uses: pyansys/pydpf-actions/[email protected]
uses: ansys/pydpf-actions/[email protected]
if: always()

- name: "Upload Test Results"
Expand Down Expand Up @@ -214,7 +214,7 @@ jobs:
needs: [docs]
steps:
- name: "Upload development documentation"
uses: pyansys/actions/doc-deploy-dev@v4
uses: ansys/actions/doc-deploy-dev@v4
with:
cname: ${{ env.DOCUMENTATION_CNAME }}
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/ci_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
echo "ANSYSLMD_LICENSE_FILE=1055@${{ secrets.LICENSE_SERVER }}" >> $GITHUB_ENV

- name: "Build Package"
uses: pyansys/pydpf-actions/[email protected]
uses: ansys/pydpf-actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
ANSYS_VERSION: ${{env.ANSYS_VERSION}}
Expand All @@ -83,7 +83,7 @@ jobs:
standalone_suffix: ".pre1"

- name: "Prepare Testing Environment"
uses: pyansys/pydpf-actions/[email protected]
uses: ansys/pydpf-actions/[email protected]
with:
DEBUG: true

Expand All @@ -92,7 +92,7 @@ jobs:
run: pip list

- name: "Test Docstrings"
uses: pyansys/pydpf-actions/[email protected]
uses: ansys/pydpf-actions/[email protected]
with:
MODULE: ${{env.MODULE}}
PACKAGE_NAME: ${{env.PACKAGE_NAME}}
Expand All @@ -105,7 +105,7 @@ jobs:
pytest $DEBUG --cov=ansys.dpf.${{env.MODULE}} --cov-report=xml --cov-report=html --cov-append --log-level=ERROR --junitxml=junit/test-results.xml --reruns 2 .

- name: "Kill all servers"
uses: pyansys/pydpf-actions/[email protected]
uses: ansys/pydpf-actions/[email protected]
if: always()

- name: "Upload Test Results"
Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:
echo "ANSYSLMD_LICENSE_FILE=1055@${{ secrets.LICENSE_SERVER }}" >> $GITHUB_ENV

- name: "Build Package"
uses: pyansys/pydpf-actions/[email protected]
uses: ansys/pydpf-actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
ANSYS_VERSION: ${{matrix.ANSYS_VERSION}}
Expand All @@ -158,7 +158,7 @@ jobs:
if: matrix.ANSYS_VERSION == '221'

- name: "Prepare Testing Environment"
uses: pyansys/pydpf-actions/[email protected]
uses: ansys/pydpf-actions/[email protected]
with:
DEBUG: true

Expand All @@ -173,7 +173,7 @@ jobs:
pytest $DEBUG --cov=ansys.dpf.${{env.MODULE}} --cov-report=xml --cov-report=html --cov-append --log-level=ERROR --junitxml=junit/test-results.xml --reruns 2 .

- name: "Kill all servers"
uses: pyansys/pydpf-actions/[email protected]
uses: ansys/pydpf-actions/[email protected]
if: always()

- name: "Upload Test Results"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:

- name: "Build Package"
id: build-package
uses: pyansys/pydpf-actions/[email protected]
uses: ansys/pydpf-actions/[email protected]
with:
python-version: ${{ inputs.python_version }}
ANSYS_VERSION: ${{inputs.ANSYS_VERSION}}
Expand Down Expand Up @@ -218,5 +218,5 @@ jobs:
path: PDF-doc-${{env.PACKAGE_NAME}}.zip

- name: "Kill all servers"
uses: pyansys/pydpf-actions/[email protected]
uses: ansys/pydpf-actions/[email protected]
if: always()
6 changes: 3 additions & 3 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: "Build Package"
uses: pyansys/pydpf-actions/[email protected]
uses: ansys/pydpf-actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
ANSYS_VERSION: ${{inputs.ANSYS_VERSION}}
Expand All @@ -110,7 +110,7 @@ jobs:
standalone_suffix: ${{ inputs.standalone_suffix }}

- name: "Prepare Testing Environment"
uses: pyansys/pydpf-actions/[email protected]
uses: ansys/pydpf-actions/[email protected]
with:
DEBUG: true

Expand All @@ -126,5 +126,5 @@ jobs:
python run_examples.py

- name: "Kill all servers"
uses: pyansys/pydpf-actions/[email protected]
uses: ansys/pydpf-actions/[email protected]
if: always()
2 changes: 1 addition & 1 deletion .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Deploy the stable documentation
uses: pyansys/actions/doc-deploy-stable@v4
uses: ansys/actions/doc-deploy-stable@v4
with:
cname: ${{ env.DOCUMENTATION_CNAME }}
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Loading a simulation (defined by its result files) allows you to extract simulat
as results and then apply postprocessing operations on it.

This module leverages the PyDPF-Core project's ``ansys-dpf-core`` package, which is
available at [PyDPF-Core GitHub](https://github.com/pyansys/pydpf-core).
available at [PyDPF-Core GitHub](https://github.com/ansys/pydpf-core).
Use the ``ansys-dpf-core`` package for building more advanced and customized workflows
using Ansys DPF.

Expand All @@ -34,7 +34,7 @@ pip install ansys-dpf-post
You can also clone and install this package with this code:

```
git clone https://github.com/pyansys/pydpf-post
git clone https://github.com/ansys/pydpf-post
cd pydpf-post
pip install . --user
```
Expand Down Expand Up @@ -68,12 +68,12 @@ To load a simulation to extract and postprocess results, use this code:
```pycon
>>> displacement.plot()
```
![Example Displacement plot Crankshaft](https://github.com/pyansys/dpf-post/raw/master/docs/source/images/crankshaft_disp.png)
![Example Displacement plot Crankshaft](https://github.com/ansys/dpf-post/raw/master/docs/source/images/crankshaft_disp.png)
```pycon
>>> stress_eqv = simulation.stress_eqv_von_mises_nodal()
>>> stress_eqv.plot()
```
![Example Stress plot Crankshaft](https://github.com/pyansys/dpf-post/raw/master/docs/source/images/crankshaft_stress.png)
![Example Stress plot Crankshaft](https://github.com/ansys/dpf-post/raw/master/docs/source/images/crankshaft_stress.png)

To run PyDPF-Post with Ansys versions 2021 R1 and 2022 R2, use this code to
start the legacy PyDPF-Post tools::
Expand All @@ -85,9 +85,9 @@ start the legacy PyDPF-Post tools::
>>> stress = solution.stress()
>>> stress.eqv.plot_contour(show_edges=False)
```
![Example Stress plot Crankshaft](https://github.com/pyansys/dpf-post/raw/master/docs/source/images/crankshaft_stress.png)
![Example Stress plot Crankshaft](https://github.com/ansys/dpf-post/raw/master/docs/source/images/crankshaft_stress.png)

## License

``PyDPF-Post`` is licensed under the MIT license. For more information, see the
[LICENSE](https://github.com/pyansys/dpf-post/raw/master/LICENSE).
[LICENSE](https://github.com/ansys/dpf-post/raw/master/LICENSE).
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
html_logo = pyansys_logo_black
html_facivon = ansys_favicon
html_theme_options = {
"github_url": "https://github.com/pyansys/pydpf-post",
"github_url": "https://github.com/ansys/pydpf-post",
"show_prev_next": False,
"show_breadcrumbs": True,
"additional_breadcrumbs": [
Expand Down
2 changes: 1 addition & 1 deletion docs/source/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ development mode, run:
Post issues
-----------

Use the `PyDPF-Post Issues <https://github.com/pyansys/pydpf-post/issues>`_
Use the `PyDPF-Post Issues <https://github.com/ansys/pydpf-post/issues>`_
page to submit questions, report bugs, and request new features.

To reach the project support team, email `[email protected] <[email protected]>`_.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/getting_started/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Install without internet
If you are unable to install PyDPF-Post on the host machine using ``pip`` due to
network isolation, you can download the wheelhouse corresponding to your platform
and Python interpreter version. To obtain the latest release, go to the **Assets** section
for the `latest PyDPF-Post release <https://github.com/pyansys/pydpf-post/releases/latest>`_ on GitHub.
for the `latest PyDPF-Post release <https://github.com/ansys/pydpf-post/releases/latest>`_ on GitHub.

The wheelhouse is a ZIP file containing Python wheels for all the packages PyDPF-Post requires to run.
To install PyDPF-Post using the downloaded wheelhouse, unzip the wheelhouse to a local directory and
Expand Down
4 changes: 2 additions & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ to extract simulation metadata as well as results and then apply postprocessing
operations on it.

This module leverages the PyDPF-Core project's ``ansys-dpf-core`` package, which is
available at `PyDPF-Core GitHub <https://github.com/pyansys/pydpf-core>`_.
available at `PyDPF-Core GitHub <https://github.com/ansys/pydpf-core>`_.
Use the ``ansys-dpf-core`` package for building more advanced and customized
workflows using DPF.

Expand Down Expand Up @@ -102,7 +102,7 @@ The PyDPF-Post API automates the use of chained DPF operators to make
postprocessing easier. The PyDPF-Post documentation describes how you can
use operators to compute results. This allows you to build your own custom,
low-level scripts to enable fast postprocessing of potentially multi-gigabyte
models using `PyDPF-Core <https://github.com/pyansys/pydpf-core>`_.
models using `PyDPF-Core <https://github.com/ansys/pydpf-core>`_.


.. toctree::
Expand Down
2 changes: 1 addition & 1 deletion docs/source/pydpf-post_clone_install.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.. code::

git clone https://github.com/pyansys/pydpf-post
git clone https://github.com/ansys/pydpf-post
cd pydpf-post
pip install -e .
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ maintainers = [
{name = "ANSYS, Inc.", email = "[email protected]"},
]
dependencies = [
"ansys-dpf-core @ git+https://[email protected]/pyansys/pydpf-core.git",
"ansys-dpf-core @ git+https://[email protected]/ansys/pydpf-core.git",
"scooby",
]
classifiers = [
Expand All @@ -38,7 +38,7 @@ classifiers = [
name = "ansys.dpf.post"

[project.urls]
Source = "https://github.com/pyansys/pydpf-post"
Source = "https://github.com/ansys/pydpf-post"

[project.optional-dependencies]
plotting = [
Expand Down