Skip to content

Commit 69fe928

Browse files
committed
merge with main; bump to v0.63.1
2 parents f0808d4 + 2a6259f commit 69fe928

File tree

16 files changed

+156
-63
lines changed

16 files changed

+156
-63
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,14 @@ jobs:
126126
application_id: ${{ secrets.BOT_APPLICATION_ID }}
127127
application_private_key: ${{ secrets.BOT_APPLICATION_PRIVATE_KEY }}
128128

129+
- name: Get tag
130+
id: tag
131+
uses: dawidd6/action-get-tag@v1
132+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
133+
with:
134+
# Optionally strip `v` prefix
135+
strip_v: false
136+
129137
- name: Setup Python
130138
uses: actions/setup-python@v2
131139
with:
@@ -221,13 +229,14 @@ jobs:
221229

222230
- name: Deploy
223231
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
224-
uses: JamesIves/github-pages-deploy-action@4.1.4
232+
uses: JamesIves/github-pages-deploy-action@v4.4.0
225233
with:
226234
repository-name: pyansys/pymapdl-docs
227235
token: ${{ steps.get_workflow_token.outputs.token }}
228-
BRANCH: gh-pages
229-
FOLDER: doc/build/html
230-
CLEAN: true
236+
branch: gh-pages
237+
folder: doc/build/html
238+
clean: true
239+
tag: ${{steps.tag.outputs.tag}}
231240

232241
- name: Build PDF Documentation
233242
working-directory: doc

.github/workflows/nightly-doc-build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ jobs:
6666
xvfb-run make -C doc html
6767
6868
- name: Deploy
69-
uses: JamesIves/github-pages-deploy-action@4.1.4
69+
uses: JamesIves/github-pages-deploy-action@v4.4.0
7070
with:
7171
repository-name: pyansys/pymapdl-dev-docs
7272
token: ${{ steps.get_workflow_token.outputs.token }}
73-
BRANCH: gh-pages
74-
FOLDER: doc/build/html
75-
CLEAN: true
73+
branch: gh-pages
74+
folder: doc/build/html
75+
clean: true
7676

7777
- name: Notify if fail
7878
uses: skitionek/notify-microsoft-teams@master

doc/source/api/helper.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ or automating other tasks.
99

1010
.. autosummary::
1111
:toctree: _autosummary
12-
1312

1413
launch_mapdl
1514
convert_apdl_block
@@ -18,4 +17,4 @@ or automating other tasks.
1817
change_default_ansys_path
1918
find_ansys
2019
close_all_local_instances
21-
20+
save_ansys_path

examples/00-mapdl-examples/cyclic_analysis.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -267,16 +267,15 @@ def gen_sector(mapdl, sectors):
267267
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
268268
# Note how the harmonic indices of these modes goes up to 10, or N/2 where N is
269269
# the number of sectors.
270-
#
271270

272271
print("C. Index Harmonic Index")
273272
for i, hindex in zip(range(result.n_results), result.harmonic_indices):
274273
print(f"{i:3d} {hindex:3d}")
275274

276275

277276
###############################################################################
278-
# Plot Nodal First Bend for Nodal Diameter 2
279-
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
277+
# Plot First Bend for Nodal Diameter 2
278+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
280279
# Note how you can clearly see two nodal lines for this mode shape since it's
281280
# nodal diameter 2.
282281

@@ -286,10 +285,10 @@ def gen_sector(mapdl, sectors):
286285

287286

288287
###############################################################################
289-
# Animate Nodal First Bend for Nodal Diameter 2
290-
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
288+
# Animate First Bend for Nodal Diameter 2
289+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
291290
# Let's end this example by animating mode 12, which corresponds to first bend
292-
# 2nd nodal diameter for this example.
291+
# for the 2nd nodal diameter of this example model.
293292

294293
_ = result.animate_nodal_displacement(
295294
12,

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ build-backend = "flit_core.buildapi"
55
[project]
66
# Check https://flit.readthedocs.io/en/latest/pyproject_toml.html for all available sections
77
name = "ansys-mapdl-core"
8-
version = "0.63.0"
9-
description = "A Python wrapper for Ansys mapdl core"
8+
version = "0.63.1"
9+
description = "A Python wrapper for Ansys MAPDL."
1010
readme = "README.rst"
1111
requires-python = ">=3.7"
1212
license = {file = "LICENSE"}
@@ -44,7 +44,7 @@ classifiers = [
4444
"Programming Language :: Python :: 3.7",
4545
"Programming Language :: Python :: 3.8",
4646
"Programming Language :: Python :: 3.9",
47-
"Programming Language :: Python :: 3.10", # requires custom VTK wheels
47+
"Programming Language :: Python :: 3.10",
4848
]
4949

5050
[tool.flit.module]

requirements/requirements_docs.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
Sphinx==5.0.2
1+
Sphinx==5.1.1
22
ansys-mapdl-reader==0.51.14
33
ansys-sphinx-theme==0.4.2
44
grpcio==1.43.0
55
imageio-ffmpeg==0.4.7
6-
imageio==2.19.5
6+
imageio==2.21.0
77
jupyter_sphinx==0.4.0
88
jupyterlab>=3.2.8
99
matplotlib==3.5.2
@@ -13,11 +13,11 @@ plotly==5.9.0
1313
pypandoc==1.8.1
1414
pytest-sphinx==0.4.0
1515
pythreejs==2.3.0
16-
pyvista==0.35.2
16+
pyvista==0.36.1
1717
sphinx-autobuild==2021.3.14
1818
sphinx-autodoc-typehints==1.18.3
1919
sphinx-copybutton==0.5.0
20-
sphinx-gallery==0.10.1
20+
sphinx-gallery==0.11.0
2121
sphinx-notfound-page==0.8.3
2222
sphinxcontrib-websupport==1.2.4
2323
sphinxemoji==0.2.0
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
autopep8==1.6.0
22
matplotlib==3.5.2
3-
scipy==1.8.1
3+
scipy==1.9.0
44
pandas==1.4.3
55
pytest==7.1.2
66
pytest-cov==3.0.0
7-
pyvista==0.35.2
7+
pyvista==0.36.1
88
pyansys-tools-report==0.2.2
99
vtk==9.0.3

src/ansys/mapdl/core/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
find_ansys,
3636
get_ansys_path,
3737
launch_mapdl,
38+
save_ansys_path,
3839
)
3940
from ansys.mapdl.core.mapdl_grpc import MapdlGrpc as Mapdl
4041
from ansys.mapdl.core.misc import Information, Report, _check_has_ansys

src/ansys/mapdl/core/database/database.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,12 @@ def start(self, timeout=10):
205205
--------
206206
>>> mapdl.db.start()
207207
"""
208+
if self._mapdl._server_version != (0, 4, 1): # pragma: no cover
209+
from ansys.mapdl.core.errors import MapdlVersionError
210+
211+
raise MapdlVersionError(
212+
"This version of MAPDL is not compatible with 'database' module."
213+
)
208214

209215
# only start if not already running
210216
is_running = self.active

src/ansys/mapdl/core/errors.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,3 +191,11 @@ class MapdlInfo(MapdlException):
191191

192192
def __init__(self, msg=""):
193193
MapdlException.__init__(self, msg)
194+
195+
196+
class MapdlVersionError(MapdlException):
197+
198+
"""Incompatible MAPDL version"""
199+
200+
def __init__(self, msg=""):
201+
MapdlException.__init__(self, msg)

0 commit comments

Comments
 (0)