Skip to content

Commit ccfa8e6

Browse files
authored
Merge branch 'main' into example_maxwell_transient_fields
2 parents 627930b + e67318d commit ccfa8e6

File tree

70 files changed

+159
-157
lines changed

Some content is hidden

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

70 files changed

+159
-157
lines changed

.github/workflows/ci_cd.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,13 @@ jobs:
7070
SPHINXBUILD_KEEP_DOCTREEDIR: "1"
7171
run: |
7272
.venv\Scripts\Activate.ps1
73-
. .\doc\make.bat html 6>&1 2>&1 | Tee-Object -Variable output
7473
75-
# Check sphinx-build exit code and error messages
76-
if ($LASTEXITCODE -ne 0 -or $output -match 'CellExecutionError') {
77-
Write-Error "HTML build failed, stopping the workflow."
74+
# NOTE: The error redirection is leveraged to make sphinx exit with non null value on CellExecutionError.
75+
. .\doc\make.bat html -j auto --color 2> sphinx-build_error.log
76+
77+
$error_log = Get-Content sphinx-build_error.log
78+
if ($error_log -match 'CellExecutionError') {
79+
Write-Error "Sphinx build failed with cell execution Error."
7880
exit 1
7981
}
8082

doc/make.bat

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pushd %~dp0
55
REM Command file for Sphinx documentation
66

77
if "%SPHINXOPTS%" == "" (
8-
set SPHINXOPTS=-j auto --color -W
8+
set SPHINXOPTS=-j auto --color
99
)
1010
if "%SPHINXBUILD%" == "" (
1111
set SPHINXBUILD=sphinx-build
@@ -70,7 +70,7 @@ rmdir /s /q %BUILDDIR% > /NUL 2>&1
7070
goto end
7171

7272
:html
73-
echo Building HTML pages with running examples
73+
echo "Building HTML pages"
7474
REM %SPHINXBUILD% -M linkcheck %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %LINKCHECKOPTS% %O%
7575
%SPHINXBUILD% -M html %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
7676
echo "HTML build finished."

examples/01-HFSS3DLayout/01_power_integrity.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030

3131
# Set constant values
3232

33-
AEDT_VERSION = "2024.1"
34-
NG_MODE = True
33+
AEDT_VERSION = "2024.2"
34+
NG_MODE = False
3535

3636

3737
# Download the example PCB data.

examples/01-HFSS3DLayout/02_dc_ir_analysis.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
# Set constant values
3434

35-
AEDT_VERSION = "2024.1"
35+
AEDT_VERSION = "2024.2"
3636
NG_MODE = False
3737

3838
# Download example board.

examples/01-HFSS3DLayout/03_gui_manipulation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# Set constant values
1616

17-
AEDT_VERSION = "2024.1"
17+
AEDT_VERSION = "2024.2"
1818
# Set ``NG_MODE`` to ``True`` in order to run in non-graphical mode.
1919
# The example is currently set up to run in graphical mode.
2020
NG_MODE = False

examples/01-HFSS3DLayout/04_pre_layout_sma_connector_on_pcb.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
# Set constant values
3939

40-
AEDT_VERSION = "2024.1"
40+
AEDT_VERSION = "2024.2"
4141
# Set ``NG_MODE`` to ``True`` in order to run in non-graphical mode.
4242
# The example is currently set up to run in graphical mode.
4343
NG_MODE = False

examples/01-HFSS3DLayout/06_ipc2581_export.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from pyaedt import Edb
1212
from pyaedt.downloads import download_file
1313

14-
EDB_VERSION = "2024.1"
14+
EDB_VERSION = "2024.2"
1515

1616
# Download the example PCB data.
1717

examples/01-HFSS3DLayout/07_import_gds.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
# Set constant values
2525

26-
EDB_VERSION = "2024.1"
26+
EDB_VERSION = "2024.2"
2727

2828
# Download the example data.
2929

examples/01-HFSS3DLayout/08_pre_layout_parametrized_pcb.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
# Set constant values
2727

28-
AEDT_VERSION = "2024.1"
28+
AEDT_VERSION = "2024.2"
2929

3030
# ## Launch EDB
3131

examples/01-Modeling-Setup/Configurations.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
# Define constants
3939

40-
AEDT_VERSION = "2024.1"
40+
AEDT_VERSION = "2024.2"
4141
NG_MODE = False # Open Electronics UI when the application is launched.
4242

4343
# ## Create temporary directory
@@ -117,7 +117,7 @@
117117
# Create an Icepak project and import the step.
118118

119119
new_project = os.path.join(temp_dir.name, "example.aedt")
120-
app = pyaedt.Icepak(project=new_project)
120+
app = pyaedt.Icepak(version=AEDT_VERSION, project=new_project)
121121
app.modeler.import_3d_cad(file_path)
122122

123123
# ## Import and apply configuration file

examples/01-Modeling-Setup/HFSS_CoordinateSystem.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
# Define constants
1414

15-
AEDT_VERSION = "2024.1"
15+
AEDT_VERSION = "2024.2"
1616
NG_MODE = False # Open Electronics UI when the application is launched.
1717

1818
# ## Create temporary directory
@@ -28,7 +28,7 @@
2828
# Insert an HFSS design with the default name.
2929

3030
project_name = os.path.join(temp_dir.name, "CoordSysDemo.aedt")
31-
hfss = pyaedt.Hfss(project=project_name)
31+
hfss = pyaedt.Hfss(version=AEDT_VERSION, project=project_name)
3232

3333
# ## Create coordinate system
3434
#

examples/01-Modeling-Setup/Optimetrics.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
# Define constants
1717

18-
AEDT_VERSION = "2024.1"
18+
AEDT_VERSION = "2024.2"
1919
NG_MODE = False # Open Electronics UI when the application is launched.
2020

2121
# ## Create temporary directory

examples/01-Modeling-Setup/Polyline_Primitives.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# Define constants
1616

17-
AEDT_VERSION = "2024.1"
17+
AEDT_VERSION = "2024.2"
1818
NG_MODE = False # Open Electronics UI when the application is launched.
1919

2020

examples/02-HFSS/Array.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
# Define constants.
2222

23-
AEDT_VERSION = "2024.1"
23+
AEDT_VERSION = "2024.2"
2424
NUM_CORES = 4
2525
NG_MODE = False # Open Electronics UI when the application is launched.
2626

examples/02-HFSS/Create_3d_Component_and_use_it.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#
2323
# Define constants
2424

25-
AEDT_VERSION = "2024.1"
25+
AEDT_VERSION = "2024.2"
2626
NG_MODE = False # Open Electronics UI when the application is launched.
2727

2828
# Create temporary directory
@@ -129,7 +129,7 @@
129129
# PyAEDT allows to control multiple projects, design and solution type at the same time.
130130

131131
new_project = os.path.join(temp_dir.name, "new_project.aedt")
132-
hfss2 = Hfss(project=new_project, design="new_design")
132+
hfss2 = Hfss(version=AEDT_VERSION, project=new_project, design="new_design")
133133

134134
# ## Insert 3D component
135135
#

examples/02-HFSS/Flex_CPWG.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# Set constant values
2020

21-
AEDT_VERSION = "2024.1"
21+
AEDT_VERSION = "2024.2"
2222

2323
# ## Set non-graphical mode
2424
#

examples/02-HFSS/HFSS_Choke.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# Set constant values
1919

20-
AEDT_VERSION = "2024.1"
20+
AEDT_VERSION = "2024.2"
2121
NG_MODE = False # Open Electronics UI when the application is launched.
2222

2323
# ## Create temporary directory

examples/02-HFSS/HFSS_Dipole.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# Set constant values
1919

20-
AEDT_VERSION = "2024.1"
20+
AEDT_VERSION = "2024.2"
2121
NUM_CORES = 4
2222
NG_MODE = False # Open Electronics UI when the application is launched.
2323

@@ -34,7 +34,7 @@
3434
# Create a new HFSS design.
3535

3636
project_name = os.path.join(temp_dir.name, "dipole.aedt")
37-
hfss = pyaedt.Hfss(project=project_name, solution_type="Modal")
37+
hfss = pyaedt.Hfss(version=AEDT_VERSION, project=project_name, solution_type="Modal")
3838

3939
# ## Define variable
4040
#

examples/02-HFSS/HFSS_FSS_unitcell.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# Set constant values
2020

21-
AEDT_VERSION = "2024.1"
21+
AEDT_VERSION = "2024.2"
2222
NG_MODE = False # Open Electronics UI when the application is launched.
2323

2424
# ## Create temporary directory
@@ -38,7 +38,7 @@
3838
#
3939
# Create a new HFSS design.
4040

41-
hfss = pyaedt.Hfss(project=project_name, solution_type="Modal")
41+
hfss = pyaedt.Hfss(version=AEDT_VERSION, project=project_name, solution_type="Modal")
4242

4343
# ## Define variable
4444
#

examples/02-HFSS/HFSS_Spiral.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
# Set constant values
1818

19-
AEDT_VERSION = "2024.1"
19+
AEDT_VERSION = "2024.2"
2020
NUM_CORES = 4
2121
NG_MODE = False # Open Electronics UI when the application is launched.
2222

examples/02-HFSS/HFSS_eigenmode.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
# Set constant values
4040

41-
AEDT_VERSION = "2024.1"
41+
AEDT_VERSION = "2024.2"
4242
NUM_CORES = 4
4343
NG_MODE = False # Open Electronics UI when the application is launched.
4444

@@ -65,7 +65,7 @@
6565
#
6666
# Create a new HFSS design.
6767

68-
hfss = pyaedt.Hfss(project=project_path, non_graphical=NG_MODE)
68+
hfss = pyaedt.Hfss(version=AEDT_VERSION, project=project_path, non_graphical=NG_MODE)
6969

7070
# ## Input parameters for eigenmode solver
7171
#

examples/02-HFSS/Probe_Fed_Patch.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
# Set constant values
2323

24-
AEDT_VERSION = "2024.1"
24+
AEDT_VERSION = "2024.2"
2525
NUM_CORES = 4
2626
NG_MODE = False # Open Electronics UI when the application is launched.
2727

examples/02-HFSS/Waveguide_Filter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
# Set constant values
2222

23-
AEDT_VERSION = "2024.1"
23+
AEDT_VERSION = "2024.2"
2424
NUM_CORES = 4
2525
NG_MODE = False # Open Electronics UI when the application is launched.
2626

examples/02-SBR+/SBR_City_Import.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# Set constant values
1919

20-
AEDT_VERSION = "2024.1"
20+
AEDT_VERSION = "2024.2"
2121
NG_MODE = False # Open Electronics UI when the application is launched.
2222

2323
# ## Create temporary directory

examples/02-SBR+/SBR_Doppler_Example.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
# Set constant values
1818

19-
AEDT_VERSION = "2024.1"
19+
AEDT_VERSION = "2024.2"
2020
NG_MODE = False # Open Electronics UI when the application is launched.
2121

2222
# ## Create temporary directory

examples/02-SBR+/SBR_Example.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# Set constant values
1919

20-
AEDT_VERSION = "2024.1"
20+
AEDT_VERSION = "2024.2"
2121
NUM_CORES = 4
2222
NG_MODE = False # Open Electronics UI when the application is launched.
2323

examples/02-SBR+/SBR_Time_Plot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
# Set constant values
1818

19-
AEDT_VERSION = "2024.1"
19+
AEDT_VERSION = "2024.2"
2020
NUM_CORES = 4
2121
NG_MODE = False # Open Electronics UI when the application is launched.
2222

examples/03-Maxwell/Maxwell2D_DCConduction.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# ## Define constants
1919

20-
AEDT_VERSION = "2024.1"
20+
AEDT_VERSION = "2024.2"
2121

2222
# ## Launch AEDT and Maxwell 2D
2323
#

examples/03-Maxwell/Maxwell2D_Electrostatic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
# ## Define constants
1818

19-
AEDT_VERSION = "2024.1"
19+
AEDT_VERSION = "2024.2"
2020
NG_MODE = False
2121

2222
# ## Create temporary directory and download files

examples/03-Maxwell/Maxwell2D_PMSynchronousMotor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# ## Define constants
1919

20-
AEDT_VERSION = "2024.1"
20+
AEDT_VERSION = "2024.2"
2121
NG_MODE = False
2222

2323
# ## Create temporary directory and download files

examples/03-Maxwell/Maxwell2D_Transient.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
# ## Define constants
3030

31-
AEDT_VERSION = "2024.1"
31+
AEDT_VERSION = "2024.2"
3232
NG_MODE = False
3333

3434
# ## Create temporary directory and download files

examples/03-Maxwell/Maxwell2D_transformer_LL.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# ## Define constants
2020

21-
AEDT_VERSION = "2024.1"
21+
AEDT_VERSION = "2024.2"
2222
NG_MODE = False
2323

2424
# ## Create temporary directory and download files

examples/03-Maxwell/Maxwell3DTeam7.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# ## Define constants
2020

21-
AEDT_VERSION = "2024.1"
21+
AEDT_VERSION = "2024.2"
2222
NG_MODE = False
2323

2424
# ## Create temporary directory

examples/03-Maxwell/Maxwell3D_Choke.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
# ## Define constants
1717

18-
AEDT_VERSION = "2024.1"
18+
AEDT_VERSION = "2024.2"
1919
NG_MODE = False
2020

2121
# ## Create temporary directory

examples/03-Maxwell/Maxwell3D_Segmentation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
# ## Define constants
1717

18-
AEDT_VERSION = "2024.1"
18+
AEDT_VERSION = "2024.2"
1919
NG_MODE = False
2020

2121
# ## Create temporary directory

examples/03-Maxwell/Maxwell3D_Team3_bath_plate.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
# ## Define constants
1818

19-
AEDT_VERSION = "2024.1"
19+
AEDT_VERSION = "2024.2"
2020
NG_MODE = False
2121

2222
# ## Create temporary directory

0 commit comments

Comments
 (0)