Skip to content

Commit cbe49ba

Browse files
DOCS: Update parameter names from 'specified_version' to 'version' in multiple files (#7279)
Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
1 parent cf12f6a commit cbe49ba

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+102
-103
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,9 @@ Usage examples follow.
238238
from ansys.aedt.core import Desktop, Circuit
239239

240240
with Desktop(
241-
specified_version="2022.2",
241+
version="2022.2",
242242
non_graphical=False,
243-
new_desktop_session=True,
243+
new_desktop=True,
244244
close_on_exit=True,
245245
student_version=False,
246246
):
@@ -259,7 +259,7 @@ with Desktop(
259259

260260
from ansys.aedt.core import Circuit
261261

262-
with Circuit(specified_version="2022.2", non_graphical=False) as circuit:
262+
with Circuit(version="2022.2", non_graphical=False) as circuit:
263263
...
264264
# Any error here will be caught by Desktop.
265265
...

README_CN.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ pip install pyaedt[all]
135135
from ansys.aedt.core import Desktop, Circuit
136136

137137
with Desktop(
138-
specified_version="2022.2",
138+
version="2022.2",
139139
non_graphical=False,
140-
new_desktop_session=True,
140+
new_desktop=True,
141141
close_on_exit=True,
142142
student_version=False,
143143
):
@@ -156,7 +156,7 @@ with Desktop(
156156

157157
from ansys.aedt.core import Circuit
158158

159-
with Circuit(specified_version="2022.2", non_graphical=False) as circuit:
159+
with Circuit(version="2022.2", non_graphical=False) as circuit:
160160
...
161161
# Any error here will be caught by Desktop.
162162
...
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update parameter names from 'specified_version' to 'version' in multiple files

doc/source/API/Application.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ Example with ``Desktop`` class explicit initialization:
4040
from ansys.aedt.core import launch_desktop, Circuit
4141
4242
d = launch_desktop(
43-
specified_version="2025.2",
43+
version="2025.2",
4444
non_graphical=False,
45-
new_desktop_session=True,
45+
new_desktop=True,
4646
close_on_exit=True,
4747
student_version=False,
4848
)
@@ -59,9 +59,9 @@ Example with ``Desktop`` class implicit initialization:
5959
from ansys.aedt.core import Circuit
6060
6161
circuit = Circuit(
62-
specified_version="2025.2",
62+
version="2025.2",
6363
non_graphical=False,
64-
new_desktop_session=True,
64+
new_desktop=True,
6565
close_on_exit=True,
6666
student_version=False,
6767
)

doc/source/API/CableModeling.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ Cable bundle creation example:
3737
from ansys.aedt.core.modules.cable_modeling import Cable
3838
3939
hfss = Hfss(
40-
projectname=project_path,
41-
specified_version="2025.2",
40+
project=project_path,
41+
version="2025.2",
4242
non_graphical=False,
43-
new_desktop_session=True,
43+
new_desktop=True,
4444
close_on_exit=True,
4545
student_version=False,
4646
)
@@ -76,10 +76,10 @@ Clock source creation example:
7676
from ansys.aedt.core.modules.cable_modeling import Cable
7777
7878
hfss = Hfss(
79-
projectname=project_path,
80-
specified_version="2025.2",
79+
project=project_path,
80+
version="2025.2",
8181
non_graphical=False,
82-
new_desktop_session=True,
82+
new_desktop=True,
8383
close_on_exit=True,
8484
student_version=False,
8585
)
@@ -127,10 +127,10 @@ Cable harness creation example:
127127
from ansys.aedt.core.modules.cable_modeling import Cable
128128
129129
hfss = Hfss(
130-
projectname=project_path,
131-
specified_version="2025.2",
130+
project=project_path,
131+
version="2025.2",
132132
non_graphical=False,
133-
new_desktop_session=True,
133+
new_desktop=True,
134134
close_on_exit=True,
135135
student_version=False,
136136
)

doc/source/API/Configuration.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ the boundary fails to apply.
4040
from ansys.aedt.core import Hfss
4141
4242
app = Hfss(
43-
project_name="original_project",
44-
specified_version="2025.2",
43+
project="original_project",
44+
version="2025.2",
4545
non_graphical=False,
46-
new_desktop_session=True,
46+
new_desktop=True,
4747
close_on_exit=True,
4848
student_version=False,
4949
)

doc/source/API/MaterialManagement.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ This section describes all material-related classes and methods.
2929
from ansys.aedt.core import Hfss
3030
3131
app = Hfss(
32-
specified_version="2025.2",
32+
version="2025.2",
3333
non_graphical=False,
34-
new_desktop_session=True,
34+
new_desktop=True,
3535
close_on_exit=True,
3636
student_version=False,
3737
)

doc/source/API/Mesh.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ They are accessible through the mesh property:
2323
from ansys.aedt.core import Maxwell3d
2424
2525
app = Maxwell3d(
26-
specified_version="2025.2",
26+
version="2025.2",
2727
non_graphical=False,
28-
new_desktop_session=True,
28+
new_desktop=True,
2929
close_on_exit=True,
3030
student_version=False,
3131
)

doc/source/API/Optimetrics.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ optimetrics setups.
88
from ansys.aedt.core import Hfss
99
1010
app = Hfss(
11-
specified_version="2025.2",
11+
version="2025.2",
1212
non_graphical=False,
13-
new_desktop_session=True,
13+
new_desktop=True,
1414
close_on_exit=True,
1515
student_version=False,
1616
)

doc/source/API/Primitive_Objects.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ They are accessible through the ``modeler.objects`` property:
1414
from ansys.aedt.core import Hfss
1515
1616
app = Hfss(
17-
specified_version="2025.2",
17+
version="2025.2",
1818
non_graphical=False,
19-
new_desktop_session=True,
19+
new_desktop=True,
2020
close_on_exit=True,
2121
student_version=False,
2222
)
@@ -79,9 +79,9 @@ They contain all getters and setters to simplify object manipulation.
7979
from ansys.aedt.core import Hfss
8080
8181
app = Hfss(
82-
specified_version="2025.2",
82+
version="2025.2",
8383
non_graphical=False,
84-
new_desktop_session=True,
84+
new_desktop=True,
8585
close_on_exit=True,
8686
student_version=False,
8787
)
@@ -129,9 +129,9 @@ imported and used because it is made by static methods.
129129
from ansys.aedt.core import Hfss
130130
131131
app = Hfss(
132-
specified_version="2025.2",
132+
version="2025.2",
133133
non_graphical=False,
134-
new_desktop_session=True,
134+
new_desktop=True,
135135
close_on_exit=True,
136136
student_version=False,
137137
)

0 commit comments

Comments
 (0)