Skip to content

Commit c3445f9

Browse files
committed
Merge remote-tracking branch 'origin/zzqbranch' into local
2 parents cad01ca + 13fab7c commit c3445f9

File tree

9 files changed

+51
-62
lines changed

9 files changed

+51
-62
lines changed

.github/workflows/ci_cd.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- main
1010

1111
env:
12-
MAIN_PYTHON_VERSION: '3.9'
12+
MAIN_PYTHON_VERSION: '3.10'
1313
PACKAGE_NAME: 'ansys-dyna-core'
1414
PACKAGE_NAMESPACE: 'ansys.dyna.core'
1515
DOCUMENTATION_CNAME: "dyna.docs.pyansys.com"
@@ -24,7 +24,7 @@ jobs:
2424
name: "Code style"
2525
runs-on: ubuntu-latest
2626
steps:
27-
- uses: ansys/actions/code-style@v4
27+
- uses: ansys/actions/code-style@v5
2828
with:
2929
python-version: ${{ env.MAIN_PYTHON_VERSION }}
3030

@@ -33,7 +33,7 @@ jobs:
3333
runs-on: ubuntu-latest
3434
steps:
3535
- name: PyAnsys documentation style checks
36-
uses: ansys/actions/doc-style@v4
36+
uses: ansys/actions/doc-style@v5
3737
with:
3838
token: ${{ secrets.GITHUB_TOKEN }}
3939

@@ -126,12 +126,11 @@ jobs:
126126
fail-fast: false
127127
matrix:
128128
os: [windows-latest, ubuntu-latest]
129-
python-version: ['3.8', '3.9', '3.10', '3.11']
129+
python-version: ['3.9', '3.10', '3.11', '3.12']
130130
steps:
131-
- uses: ansys/actions/build-wheelhouse@v4
131+
- uses: ansys/actions/build-wheelhouse@v5
132132
with:
133133
library-name: ${{ env.PACKAGE_NAME }}
134-
library-namespace: ${{ env.PACKAGE_NAMESPACE }}
135134
operating-system: ${{ matrix.os }}
136135
python-version: ${{ matrix.python-version }}
137136

@@ -194,7 +193,7 @@ jobs:
194193
needs: [doc, tests]
195194
runs-on: ubuntu-latest
196195
steps:
197-
- uses: ansys/actions/build-library@v4
196+
- uses: ansys/actions/build-library@v5
198197
with:
199198
library-name: ${{ env.PACKAGE_NAME }}
200199
python-version: ${{ env.MAIN_PYTHON_VERSION }}
@@ -206,14 +205,14 @@ jobs:
206205
runs-on: ubuntu-latest
207206
steps:
208207
- name: "Release to the public PyPI repository"
209-
uses: ansys/actions/release-pypi-public@v4
208+
uses: ansys/actions/release-pypi-public@v5
210209
with:
211210
library-name: ${{ env.PACKAGE_NAME }}
212211
twine-username: "__token__"
213212
twine-token: ${{ secrets.PYPI_TOKEN }}
214213

215214
- name: "Release to GitHub"
216-
uses: ansys/actions/release-github@v4
215+
uses: ansys/actions/release-github@v5
217216
with:
218217
library-name: ${{ env.PACKAGE_NAME }}
219218

@@ -223,7 +222,7 @@ jobs:
223222
runs-on: ubuntu-latest
224223
needs: [build-library]
225224
steps:
226-
- uses: ansys/actions/doc-deploy-dev@v4
225+
- uses: ansys/actions/doc-deploy-dev@v5
227226
with:
228227
cname: ${{ env.DOCUMENTATION_CNAME }}
229228
token: ${{ secrets.GITHUB_TOKEN }}
@@ -234,8 +233,7 @@ jobs:
234233
runs-on: ubuntu-latest
235234
needs: [release]
236235
steps:
237-
- uses: ansys/actions/doc-deploy-stable@v4
236+
- uses: ansys/actions/doc-deploy-stable@v5
238237
with:
239238
cname: ${{ env.DOCUMENTATION_CNAME }}
240239
token: ${{ secrets.GITHUB_TOKEN }}
241-
python-version: ${{ env.MAIN_PYTHON_VERSION }}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
Start pydyna pre server locally
2-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1+
Start PyDYNA preprocessing server locally
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33

44
Run an example on the client side
55
*********************************
6-
6+
77
.. code:: bash
88
99
hostname = "localhost"
@@ -12,4 +12,4 @@ Run an example on the client side
1212
solution = DynaSolution(hostname)
1313
......
1414
15-
#. The function of DynaSolution() will download and start the pre server automatically.
15+
#. The function of DynaSolution() can download and start the preprocessing server automatically.

doc/source/getting-started/SERVER_SOLVER_README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Start pydyna solver server locally
1+
Start PyDYNA solver server locally
22
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33

44
Prerequisites
@@ -12,13 +12,13 @@ Start server on Windows
1212
Start server on Linux(Centos7)
1313
++++++++++++++++++++++++++++++
1414

15-
#. If you want to start the server on Linux,please ensure that you have installed the openmpi package.
15+
#. If you want to start the server on Linux,please ensure that you have installed the Open MPI package.
1616

1717
.. code:: bash
1818
1919
yum install openmpi3 openmpi3-dev
2020
21-
#. set environment variable for openmpi
21+
#. set environment variable for Open MPI
2222

2323
.. code:: bash
2424
@@ -38,4 +38,4 @@ Run an example on the client side
3838
dyna.push("./output/ball_plate.k") # push an input file
3939
dyna.start_locally(input = "ball_plate.k",nproc=1)
4040
41-
#. The function of solver.DynaSolver() will download and start the solver server automatically.
41+
#. The function of DynaSolver() can download and start the solver server automatically.

doc/source/getting-started/example.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
The next few sections show how to preprocess, solve, and postprocess a ball plate example.
1+
The next few sections show how to preprocessing, solve, and postprocessing a ball plate example.
22

3-
Preprocess
4-
~~~~~~~~~~
5-
The following code preprocesses a ball plate example. In the repository, you can get the
3+
Preprocessing
4+
~~~~~~~~~~~~~
5+
The following code processes a ball plate example. In the repository, you can get the
66
input file from ``src/ansys/dyna/core/pre/examples/explicit/ball_plate/ball_plate.k`` and
77
the Python file from ``examples/Explicit/ball_plate.py``.
88

@@ -104,9 +104,9 @@ you can get the Python file from ``examples/solver/ball_plate_solver.py``.
104104
dyna.run("i=ball_plate.k memory=10m ncycle=20000") # begin execution
105105
106106
107-
Postprocess
108-
~~~~~~~~~~~
109-
The following code postprocesses results from the solve of this basic ball plate example:
107+
Post processing
108+
~~~~~~~~~~~~~~~
109+
The following code processes results from the solve of this basic ball plate example:
110110

111111
.. code:: python
112112
@@ -138,4 +138,4 @@ The following code postprocesses results from the solve of this basic ball plate
138138
fields_top.animate()
139139
140140
For more examples, see `Examples <https://dyna.docs.pyansys.com/version/stable/examples/index.html>`_
141-
in the PyDYNA documentation.
141+
in the PyDYNA documentation.

doc/source/getting-started/index.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Both these modules are gRPC enabled and hence need to be run using server-client
1414

1515
Install the client
1616
------------------
17-
The ``ansys.dyna.core`` package supports Python 3.8 through
18-
Python 3.11 on Windows, Linux, and MacOS.
17+
The ``ansys.dyna.core`` package supports Python 3.9 through
18+
Python 3.12 on Windows, Linux, and MacOS.
1919

2020
You should consider installing PyDYNA in a virtual environment.
2121
For more information, see Python's
@@ -66,21 +66,21 @@ PyDYNA by downloading the wheelhouse archive for your corresponding machine
6666
architecture from the `Releases Page <https://github.com/pyansys/pydyna/releases>`_.
6767

6868
Each wheelhouse archive contains all the Python wheels necessary to install
69-
PyDYNA from scratch on Windows and Linux for Python 3.8 through 3.11. You can install
69+
PyDYNA from scratch on Windows and Linux for Python 3.9 through 3.12. You can install
7070
PyDYNA on an isolated system with a fresh Python installation or on a virtual environment.
7171

72-
For example, on Linux with Python 3.8, unzip the wheelhouse archive and install PyDYNA
72+
For example, on Linux with Python 3.9, unzip the wheelhouse archive and install PyDYNA
7373
with these commands:
7474

7575
.. code:: bash
7676
77-
unzip ansys-dyna-core-v0.3.dev0-wheelhouse-Linux-3.8.zip -d wheelhouse
77+
unzip ansys-dyna-core-v0.3.dev0-wheelhouse-Linux-3.9.zip -d wheelhouse
7878
pip install ansys-dyna-core -f wheelhouse --no-index --upgrade --ignore-installed
7979
80-
If you're on Windows with Python 3.8, unzip the wheelhouse archive to a ``wheelhouse``
80+
If you're on Windows with Python 3.9, unzip the wheelhouse archive to a ``wheelhouse``
8181
directory and install PyDYNA using the preceding command.
8282

83-
Run PyDYNA Server locally
83+
Run PyDYNA server locally
8484
-------------------------
8585
Launching the servers directly on local machines.
8686

docker/pre/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Pydyna-pre service Linux-based Dockerfile
22

3-
FROM python:3.8-slim-buster
3+
FROM python:3.9-slim-buster
44

55
# Define the working directory
66
WORKDIR /server

pyproject.toml

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ name = "ansys-dyna-core"
77
version = "0.4.dev0"
88
description = "Python interface to LS-DYNA Service"
99
readme = "README.rst"
10-
requires-python = ">=3.8,<4"
11-
license = {file = "LICENSE"}
12-
authors = [{name = "ANSYS, Inc.", email = "[email protected]"}]
13-
maintainers = [{name = "ANSYS, Inc.", email = "[email protected]"}]
10+
requires-python = ">=3.9,<4"
11+
license = { file = "LICENSE" }
12+
authors = [{ name = "ANSYS, Inc.", email = "[email protected]" }]
13+
maintainers = [{ name = "ANSYS, Inc.", email = "[email protected]" }]
1414
keywords = ["Ansys", "LS-DYNA", "gRPC"]
1515
classifiers = [
1616
"Development Status :: 4 - Beta",
@@ -19,37 +19,34 @@ classifiers = [
1919
"License :: OSI Approved :: MIT License",
2020
"Operating System :: OS Independent",
2121
"Programming Language :: Python :: 3",
22-
"Programming Language :: Python :: 3.8",
2322
"Programming Language :: Python :: 3.9",
2423
"Programming Language :: Python :: 3.10",
2524
"Programming Language :: Python :: 3.11",
25+
"Programming Language :: Python :: 3.12",
2626
]
2727

28-
dependencies = [
29-
"ansys-dpf-core>=0.7.2",
30-
"ansys-api-dyna==0.3.5",
31-
]
28+
dependencies = ["ansys-dpf-core>=0.7.2", "ansys-api-dyna==0.3.5"]
3229

3330
[project.optional-dependencies]
3431
tests = [
35-
"pyvista==0.43.0",
32+
"pyvista==0.43.1",
3633
"matplotlib==3.8.2",
37-
"numpy==1.26.2",
38-
"pytest==7.4.3",
34+
"numpy==1.26.3",
35+
"pytest==7.4.4",
3936
"pytest-cov==4.1.0",
4037
"joblib==1.3.2",
4138
"pandas==2.1.4",
4239
"openpyxl==3.1.2",
4340
"scikit-learn==1.3.2",
4441
"pytest-xdist==3.5.0",
45-
"ipython==8.18.1",
42+
"ipython==8.20.0",
4643
]
4744
doc = [
4845
"recommonmark==0.7.1",
4946
"matplotlib==3.8.2",
5047
"imageio==2.33.1",
5148
"imageio-ffmpeg==0.4.9",
52-
"pyvista==0.43.0",
49+
"pyvista==0.43.1",
5350
"numpydoc==1.6.0",
5451
"Sphinx==7.2.6",
5552
"sphinx-autobuild==2021.3.14",
@@ -59,14 +56,14 @@ doc = [
5956
"sphinx-copybutton==0.5.2",
6057
"sphinx-gallery==0.15.0",
6158
"sphinx-autodoc-typehints==1.25.2",
62-
"ansys-sphinx-theme==0.12.5",
59+
"ansys-sphinx-theme==0.13.0",
6360
"pypandoc==1.12",
6461
"nbsphinx==0.9.3",
6562
"ipywidgets==8.1.1",
6663
"joblib==1.3.2",
6764
"scikit-learn==1.3.2",
68-
"ipython==8.18.1",
69-
"jupyterlab==4.0.9",
65+
"ipython==8.20.0",
66+
"jupyterlab==4.0.10",
7067
"sphinx-jinja==2.0.2",
7168
"sphinx-autoapi==3.0.0",
7269
]
@@ -99,6 +96,4 @@ show_missing = true
9996
[tool.pytest.ini_options]
10097
minversion = "7.1"
10198
addopts = "-ra --cov=ansys.dyna.core --cov-report html:.cov/html --cov-report xml:.cov/xml --cov-report term -vv"
102-
testpaths = [
103-
"tests",
104-
]
99+
testpaths = ["tests"]

src/ansys/dyna/core/pre/dynalogging.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,7 @@ def __init__(
241241
validate=True,
242242
defaults=None,
243243
):
244-
if sys.version_info[1] < 8:
245-
super().__init__(fmt, datefmt, style)
246-
else:
247-
# 3.8: The validate parameter was added
248-
super().__init__(fmt, datefmt, style, validate)
244+
super().__init__(fmt, datefmt, style, validate)
249245
self._style = PymapdlPercentStyle(fmt, defaults=defaults) # overwriting
250246

251247

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ isolated_build_env = build
99
[testenv]
1010
description = Checks for project testing with desired extras
1111
basepython =
12-
tests38: python3.8
1312
tests39: python3.9
1413
test310: python3.10
1514
test311: python3.11
15+
test312: python3.12
1616
{style,tests,doc}: python3
1717
passenv = *
1818
setenv =

0 commit comments

Comments
 (0)