Skip to content

Commit

Permalink
Fixing escaping characters in docstrings (#2952)
Browse files Browse the repository at this point in the history
* Escaping underscore

* fixing other scaped chars
  • Loading branch information
germa89 authored Apr 2, 2024
1 parent d16b9b3 commit 782cc0d
Show file tree
Hide file tree
Showing 41 changed files with 117 additions and 115 deletions.
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 @@ -1141,7 +1141,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 @@ -1154,7 +1155,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 @@ -1163,7 +1165,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 @@ -1175,7 +1177,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 @@ -360,7 +360,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
2 changes: 1 addition & 1 deletion src/ansys/mapdl/core/_commands/database/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def cmsel(
Parameters
----------
type\_
type_
Label identifying the type of select:
S - Select a new set (default).
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 - Node numbers
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 @@ -99,7 +99,7 @@ def asll(self, type_="", arkey="", **kwargs):
Parameters
----------
type\_
type\\_
Label identifying the type of area select:
S - Select a new set (default).
Expand Down Expand Up @@ -152,7 +152,7 @@ def asel(
Parameters
----------
type\_
type\\_
Label identifying the type of select:
S - Select a new set (default)
Expand Down Expand Up @@ -272,7 +272,7 @@ def aslv(self, type_="", **kwargs):
Parameters
----------
type\_
type\\_
Label identifying the type of area select:
S - Select a new set (default).
Expand Down Expand Up @@ -306,7 +306,7 @@ def dofsel(
Parameters
----------
type\_
type\\_
Label identifying the type of select:
S - Select a new set of labels.
Expand Down Expand Up @@ -393,7 +393,7 @@ def esel(
Parameters
----------
type\_
type\\_
Label identifying the type of select:
- S - Select a new set (default).
Expand Down Expand Up @@ -694,7 +694,7 @@ def ksel(
Parameters
----------
type\_
type\\_
Label identifying the type of select:
S
Expand Down Expand Up @@ -808,7 +808,7 @@ def ksll(self, type_="", **kwargs):
Parameters
----------
type\_
type\\_
Label identifying the type of keypoint select:
S - Select a new set (default).
Expand All @@ -833,7 +833,7 @@ def ksln(self, type_="", **kwargs):
Parameters
----------
type\_
type\\_
Label identifying the type of keypoint select:
S - Select a new set (default).
Expand Down Expand Up @@ -883,7 +883,7 @@ def lsel(
Parameters
----------
type\_
type\\_
Label identifying the type of select:
S - Select a new set (default).
Expand Down Expand Up @@ -995,7 +995,7 @@ def lsla(self, type_="", **kwargs):
Parameters
----------
type\_
type\\_
Label identifying the type of line select:
S - Select a new set (default).
Expand All @@ -1020,7 +1020,7 @@ def lslk(self, type_="", lskey="", **kwargs):
Parameters
----------
type\_
type\\_
Label identifying the type of line select:
S - Select a new set (default).
Expand Down Expand Up @@ -1074,7 +1074,7 @@ def nsel(
Parameters
----------
type\_
type\\_
Label identifying the type of select:
S - Select a new set (default).
Expand Down Expand Up @@ -1235,7 +1235,7 @@ def nsla(self, type_="", nkey="", **kwargs):
Parameters
----------
type\_
type\\_
Label identifying the type of node select:
S - Select a new set (default).
Expand Down Expand Up @@ -1282,7 +1282,7 @@ def nsle(self, type_="", nodetype="", num="", **kwargs):
Parameters
----------
type\_
type\\_
Label identifying the type of node select:
S - Select a new set (default).
Expand Down Expand Up @@ -1345,7 +1345,7 @@ def nslk(self, type_="", **kwargs):
Parameters
----------
type\_
type\\_
Label identifying the type of node select:
S - Select a new set (default).
Expand Down Expand Up @@ -1374,7 +1374,7 @@ def nsll(self, type_="", nkey="", **kwargs):
Parameters
----------
type\_
type\\_
Label identifying the type of node select:
S - Select a new set (default).
Expand Down Expand Up @@ -1411,7 +1411,7 @@ def nslv(self, type_="", nkey="", **kwargs):
Parameters
----------
type\_
type\\_
Label identifying the type of node select:
S - Select a new set (default).
Expand Down Expand Up @@ -1447,7 +1447,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 @@ -1536,7 +1536,7 @@ def vsel(
Parameters
----------
type\_
type\\_
Label identifying the type of volume select:
S - Select a new set (default).
Expand Down Expand Up @@ -1633,7 +1633,7 @@ def vsla(self, type_="", vlkey="", **kwargs):
Parameters
----------
type\_
type\\_
Label identifying the type of volume select:
S - Select a new set (default).
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 @@ -159,7 +159,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
6 changes: 3 additions & 3 deletions src/ansys/mapdl/core/_commands/graphics_/labeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,13 +404,13 @@ def pbc(self, item="", key="", min_="", max_="", abs_="", **kwargs):
2 - Plot value next to symbol.
min\_
min\\_
Minimum value in a range of values plotted on screen.
max\_
max\\_
Maximum value in a range of values plotted on screen.
abs\_
abs\\_
Absolute number. If KEY = 2 and ABS = 0, a number falling between
the MIN and MAX is displayed. If ABS is not specified, it defaults
to 0. If KEY = 2 and ABS = 1, an absolute value falling between
Expand Down
4 changes: 2 additions & 2 deletions src/ansys/mapdl/core/_commands/graphics_/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def light(self, wn="", num="", int_="", xv="", yv="", zv="", refl="", **kwargs):
1 - Directional light.
int\_
int\\_
Light intensity factor (defaults to 0.3 for ambient, 1.0 for
directional). This option is valid only for 3-D devices).
Expand Down Expand Up @@ -530,7 +530,7 @@ def shade(self, wn="", type_="", **kwargs):
wn
Window number (or ALL) to which command applies (defaults to 1).
type\_
type\\_
Shading type:
FACET or 0 - Facet shading (one color per area face) (default).
Expand Down
Loading

0 comments on commit 782cc0d

Please sign in to comment.