Skip to content

Commit

Permalink
Merge branch 'main' into doc/some-docstring-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 authored Apr 2, 2024
2 parents af04ae4 + 4fcc96e commit f70ef8b
Show file tree
Hide file tree
Showing 45 changed files with 124 additions and 121 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ jobs:
steps:
- uses: actions/checkout@v4.1.2
- name: "Set up Julia"
uses: julia-actions/setup-julia@v1
uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia-version }}

Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
- id: isort

- repo: https://github.com/numpy/numpydoc
rev: v1.7.0rc0
rev: v1.7.0
hooks:
- id: numpydoc-validation
exclude: |
Expand Down Expand Up @@ -65,6 +65,6 @@ repos:

# this validates our github workflow files
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.0
rev: 0.28.1
hooks:
- id: check-github-workflows
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name = "ansys-mapdl-core"
version = "0.69.dev0"
description = "A Python wrapper for Ansys MAPDL."
readme = "README.md"
requires-python = ">=3.9,<3.13"
requires-python = ">=3.9,<3.13" # Update also 'MINIMUM_PYTHON_VERSION' in src/ansys/mapdl/core/__init__.py
license = {file = "LICENSE"}
authors = [
{name = "Ansys, Inc.", email = "pyansys.maintainers@ansys.com"},
Expand Down
2 changes: 1 addition & 1 deletion src/ansys/mapdl/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
os.makedirs(USER_DATA_PATH)

DEPRECATING_MINIMUM_PYTHON_VERSION = True
MINIMUM_PYTHON_VERSION = (3, 8)
MINIMUM_PYTHON_VERSION = (3, 9)

first_time_file = os.path.join(USER_DATA_PATH, ".firstime")
if not os.path.exists(first_time_file): # pragma: no cover
Expand Down
10 changes: 6 additions & 4 deletions src/ansys/mapdl/core/_commands/apdl/array_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,8 @@ def voper(self, parr="", par1="", oper="", par2="", con1="", con2="", **kwargs):
First derivative:
.. math::
\dfrac{\mathrm{d}(\mathrm{Par1})}{\mathrm{d}(\mathrm{Par2})}
\\dfrac{\\mathrm{d}(\\mathrm{Par1})}{\\mathrm{d}(\\mathrm{Par2})}
The derivative at a point is determined over points
half way between the previous and next points
Expand All @@ -1177,7 +1178,8 @@ def voper(self, parr="", par1="", oper="", par2="", con1="", con2="", **kwargs):
Second derivative:
.. math::
\dfrac{\mathrm{d}^2(\mathrm{Par1})}{\mathrm{d}(\mathrm{Par2})^2}
\\dfrac{\\mathrm{d}^2(\\mathrm{Par1})}{\\mathrm{d}(\\mathrm{Par2})^2}
See also ``DER1``.
Expand All @@ -1186,7 +1188,7 @@ def voper(self, parr="", par1="", oper="", par2="", con1="", con2="", **kwargs):
.. math::
\int Par1 \, d(Par2)
\\int Par1 \\, d(Par2)
where ``CON1`` is the integration constant.
The integral at a point is
Expand All @@ -1198,7 +1200,7 @@ def voper(self, parr="", par1="", oper="", par2="", con1="", con2="", **kwargs):
.. math::
\iint Par1 \, d(Par2)
\\iint Par1 \\, d(Par2)
where ``CON1`` is the integration constant of the first
integral and ``CON2`` is the integration constant
Expand Down
2 changes: 1 addition & 1 deletion src/ansys/mapdl/core/_commands/apdl/macro_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def rmdir(self, dir_="", **kwargs):
Parameters
----------
dir\_
dir\\_
The directory to remove. If no path is provided, it will be assumed
to be in the current working directory. All files in the directory
are also removed.
Expand Down
10 changes: 5 additions & 5 deletions src/ansys/mapdl/core/_commands/apdl/matrix_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def dmat(
matrix
Name used to identify the matrix. Must be specified.
type\_
type\\_
Matrix type:
Double precision real values (default). - Complex double precision values.
Expand Down Expand Up @@ -239,7 +239,7 @@ def export(
Name of the matrix to export (must be a matrix previously created
with ``*DMAT`` or ``*SMAT``, or a vector previously created with ``*VEC``).
format\_
format\\_
Format of the output file:
Export the matrix in the Matrix Market Format. - Export
Expand Down Expand Up @@ -302,7 +302,7 @@ def fft(
Parameters
----------
type\_
type\\_
Type of FFT transformation:
Forward FFT computation (default). - Backward FFT computation.
Expand Down Expand Up @@ -420,7 +420,7 @@ def itengine(
Parameters
----------
type\_
type\\_
Specifies the algorithm to be used:
enginename
Expand Down Expand Up @@ -834,7 +834,7 @@ def smat(
matrix
Name used to identify the matrix. Must be specified.
type\_
type\\_
Matrix type:
Double precision real values (default). - Complex double precision values.
Expand Down
4 changes: 2 additions & 2 deletions src/ansys/mapdl/core/_commands/apdl/parameter_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def dim(
Name of parameter to be dimensioned. See ``*SET`` for name
restrictions.
type\_
type\\_
Array type:
Arrays are similar to standard FORTRAN arrays (indices are
Expand Down Expand Up @@ -261,7 +261,7 @@ def get(
Parameters
----------
par : str, optional
The name of the resulting parameter. See \*SET for name
The name of the resulting parameter. See \\*SET for name
restrictions.
entity
Expand Down
2 changes: 1 addition & 1 deletion src/ansys/mapdl/core/_commands/aux12_/radiosity_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def vfopt(
ext
Filename extension for view factor matrix. Default = .vf.
dir\_
dir\\_
Directory path for view factor matrix. If you do not specify a
directory path, it will default to your working directory.
Expand Down
4 changes: 2 additions & 2 deletions src/ansys/mapdl/core/_commands/aux3_.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ def modify(
Parameters
----------
set\_
set\\_
Set of data in results file to be modified.
lstep
The new load step number.
iter\_
iter\\_
The new load substep number.
cumit
Expand Down
3 changes: 2 additions & 1 deletion src/ansys/mapdl/core/_commands/database/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,8 @@ def cmsel(
Parameters
----------
type\\_
type_
Label identifying the type of select:
S
Expand Down
2 changes: 1 addition & 1 deletion src/ansys/mapdl/core/_commands/database/picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def flst(self, nfield="", narg="", type_="", otype="", leng="", **kwargs):
narg
Number of items in the picked list.
type\_
type\\_
Type of items picked:
1
Expand Down
40 changes: 20 additions & 20 deletions src/ansys/mapdl/core/_commands/database/selecting.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def asll(self, type_="", arkey="", **kwargs):
Parameters
----------
type\_
type\\_
Label identifying the type of area select:
S
Expand Down Expand Up @@ -167,7 +167,7 @@ def asel(
Parameters
----------
type\_
type\\_
Label identifying the type of select:
S
Expand Down Expand Up @@ -300,7 +300,7 @@ def aslv(self, type_="", **kwargs):
Parameters
----------
type\_
type\\_
Label identifying the type of area select:
S
Expand Down Expand Up @@ -338,7 +338,7 @@ def dofsel(
Parameters
----------
type\_
type\\_
Label identifying the type of select:
S
Expand Down Expand Up @@ -430,7 +430,7 @@ def esel(
Parameters
----------
type\_
type\\_
Label identifying the type of select:
S
Expand Down Expand Up @@ -765,7 +765,7 @@ def ksel(
Parameters
----------
type\_
type\\_
Label identifying the type of select:
S
Expand Down Expand Up @@ -882,7 +882,7 @@ def ksll(self, type_="", **kwargs):
Parameters
----------
type\_
type\\_
Label identifying the type of keypoint select:
S
Expand Down Expand Up @@ -911,7 +911,7 @@ def ksln(self, type_="", **kwargs):
Parameters
----------
type\_
type\\_
Label identifying the type of keypoint select:
S
Expand Down Expand Up @@ -965,7 +965,7 @@ def lsel(
Parameters
----------
type\_
type\\_
Label identifying the type of select:
S
Expand Down Expand Up @@ -1088,7 +1088,7 @@ def lsla(self, type_="", **kwargs):
Parameters
----------
type\_
type\\_
Label identifying the type of line select:
S
Expand Down Expand Up @@ -1117,7 +1117,7 @@ def lslk(self, type_="", lskey="", **kwargs):
Parameters
----------
type\_
type\\_
Label identifying the type of line select:
S
Expand Down Expand Up @@ -1177,7 +1177,7 @@ def nsel(
Parameters
----------
type\_
type\\_
Label identifying the type of select:
S
Expand Down Expand Up @@ -1346,7 +1346,7 @@ def nsla(self, type_="", nkey="", **kwargs):
Parameters
----------
type\_
type\\_
Label identifying the type of node select:
S
Expand Down Expand Up @@ -1399,7 +1399,7 @@ def nsle(self, type_="", nodetype="", num="", **kwargs):
Parameters
----------
type\_
type\\_
Label identifying the type of node select:
S
Expand Down Expand Up @@ -1473,7 +1473,7 @@ def nslk(self, type_="", **kwargs):
Parameters
----------
type\_
type\\_
Label identifying the type of node select:
S
Expand Down Expand Up @@ -1506,7 +1506,7 @@ def nsll(self, type_="", nkey="", **kwargs):
Parameters
----------
type\_
type\\_
Label identifying the type of node select:
S
Expand Down Expand Up @@ -1549,7 +1549,7 @@ def nslv(self, type_="", nkey="", **kwargs):
Parameters
----------
type\_
type\\_
Label identifying the type of node select:
S
Expand Down Expand Up @@ -1589,7 +1589,7 @@ def partsel(self, type_="", pmin="", pmax="", pinc="", **kwargs):
Parameters
----------
type\_
type\\_
Label identifying type of select. Because PARTSEL is a command
macro, the label must be enclosed in single quotes.
Expand Down Expand Up @@ -1685,7 +1685,7 @@ def vsel(
Parameters
----------
type\_
type\\_
Label identifying the type of volume select:
S
Expand Down Expand Up @@ -1792,7 +1792,7 @@ def vsla(self, type_="", vlkey="", **kwargs):
Parameters
----------
type\_
type\\_
Label identifying the type of volume select:
S
Expand Down
2 changes: 1 addition & 1 deletion src/ansys/mapdl/core/_commands/graphics_/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def anum(self, num="", type_="", xhot="", yhot="", **kwargs):
number is available; ANSYS will substitute the lowest available
number in place of any user-specified higher number.
type\_
type\\_
Annotation internal type number. If TYPE = DELE, delete annotation
NUM.
Expand Down
Loading

0 comments on commit f70ef8b

Please sign in to comment.