Skip to content

Commit f04c649

Browse files
Apply suggestions from code review
Co-authored-by: Sébastien Morais <146729917+SMoraisAnsys@users.noreply.github.com>
1 parent 5d040ce commit f04c649

9 files changed

+17
-23
lines changed

examples/02-HFSS/Array.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,8 @@
119119

120120
hfss.save_project()
121121
hfss.release_desktop()
122-
time.sleep(
123-
3
124-
) # Allow Electronics Desktop to shut down before cleaning the temporary project folder.
122+
# Wait 3 seconds to allow Electronics Desktop to shut down before cleaning the temporary directory.
123+
time.sleep(3)
125124

126125
# ## Load far field data
127126
#

examples/02-HFSS/Create_3d_Component_and_use_it.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,8 @@
188188

189189
hfss2.save_project()
190190
hfss2.release_desktop()
191-
time.sleep(
192-
3
193-
) # Allow Electronics Desktop to shut down before cleaning the temporary project folder.
191+
# Wait 3 seconds to allow Electronics Desktop to shut down before cleaning the temporary directory.
192+
time.sleep(3)
194193

195194
# ## Cleanup
196195
#

examples/02-HFSS/HFSS_Choke.py

+1
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@
251251

252252
hfss.save_project()
253253
hfss.release_desktop()
254+
# Wait 3 seconds to allow Electronics Desktop to shut down before cleaning the temporary directory.
254255
time.sleep(3)
255256

256257
# ## Cleanup

examples/02-HFSS/HFSS_Dipole.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,8 @@
201201

202202
hfss.save_project()
203203
d.release_desktop()
204-
time.sleep(
205-
3
206-
) # Allow Electronics Desktop to shut down before cleaning the temporary project folder.
204+
# Wait 3 seconds to allow Electronics Desktop to shut down before cleaning the temporary directory.
205+
time.sleep(3)
207206

208207
# ## Cleanup
209208
#

examples/02-HFSS/HFSS_FSS_unitcell.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,8 @@
147147
# ## Release AEDT
148148

149149
hfss.release_desktop()
150-
time.sleep(
151-
3
152-
) # Allow Electronics Desktop to shut down before cleaning the temporary project folder.
150+
# Wait 3 seconds to allow Electronics Desktop to shut down before cleaning the temporary directory.
151+
time.sleep(3)
153152

154153
# ## Cleanup
155154
#

examples/02-HFSS/HFSS_Spiral.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@
5656
# ## Standardize polyline
5757
#
5858
# Define a function that creates a polyline using the ``create_line`` method. This
59-
# function creates a polyline having fixed
60-
# width, thickness, and material.
59+
# function creates a polyline having fixed width, thickness, and material.
6160

6261

6362
def create_line(pts):
@@ -217,9 +216,8 @@ def create_line(pts):
217216

218217
hfss.save_project()
219218
hfss.release_desktop()
220-
time.sleep(
221-
3
222-
) # Allow Electronics Desktop to shut down before cleaning the temporary project folder.
219+
# Wait 3 seconds to allow Electronics Desktop to shut down before cleaning the temporary directory.
220+
time.sleep(3)
223221

224222
# ## Cleanup
225223
#

examples/02-HFSS/HFSS_eigenmode.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,8 @@ def find_resonance():
166166

167167
hfss.save_project()
168168
d.release_desktop()
169-
time.sleep(
170-
3
171-
) # Allow Electronics Desktop to shut down before cleaning the temporary project folder.
169+
# Wait 3 seconds to allow Electronics Desktop to shut down before cleaning the temporary directory.
170+
time.sleep(3)
172171

173172
# ## Cleanup
174173
#

examples/02-HFSS/Probe_Fed_Patch.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,8 @@
102102

103103
hfss.save_project()
104104
hfss.release_desktop()
105-
time.sleep(
106-
3
107-
) # Allow Electronics Desktop to shut down before cleaning the temporary project folder.
105+
# Wait 3 seconds to allow Electronics Desktop to shut down before cleaning the temporary directory.
106+
time.sleep(3)
108107

109108
# ## Cleanup
110109
#

examples/02-HFSS/Waveguide_Filter.py

+1
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ def place_iris(z_pos, dz, param_count):
254254

255255
hfss.save_project()
256256
hfss.release_desktop()
257+
# Wait 3 seconds to allow Electronics Desktop to shut down before cleaning the temporary directory.
257258
time.sleep(3)
258259

259260
# ## Cleanup

0 commit comments

Comments
 (0)