Skip to content

Commit 8178e4f

Browse files
maxcapodi78maxcapodi78
authored andcommitted
Improved all Examples by adding reports
1 parent 02cc697 commit 8178e4f

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

_unittest/test_12_PostProcessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def test_09_manipulate_report(self):
213213
if not is_ironpython:
214214
assert data.plot(is_polar=True)
215215
assert data.plot_3d()
216-
self.field_test.modeler.create_polyline([[0,0,0], [0,5,30]], name="Poly1",non_model=True)
216+
self.field_test.modeler.create_polyline([[0, 0, 0], [0, 5, 30]], name="Poly1", non_model=True)
217217
variations2 = self.field_test.available_variations.nominal_w_values_dict
218218
variations2["Theta"] = ["All"]
219219
variations2["Phi"] = ["All"]

pyaedt/modeler/Modeler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3541,6 +3541,7 @@ def create_face_list(self, fl, name):
35413541
35423542
>>> oEditor.CreateEntityList
35433543
"""
3544+
fl = self.convert_to_selections(fl, True)
35443545
self.oeditor.CreateEntityList(
35453546
["NAME:GeometryEntityListParameters", "EntityType:=", "Face", "EntityList:=", fl],
35463547
["NAME:Attributes", "Name:=", name],

pyaedt/modeler/PrimitivesCircuit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def _get_location(self, location=None):
141141
ypos = location[1]
142142
self.current_position = location
143143
self.current_position[1] += AEDT_UNITS["Length"]["mil"] * self.increment_mils[1]
144-
if self.current_position[1]/AEDT_UNITS["Length"]["mil"] > self.limits_mils:
144+
if self.current_position[1] / AEDT_UNITS["Length"]["mil"] > self.limits_mils:
145145
self.current_position[1] = 0
146146
self.current_position[0] += AEDT_UNITS["Length"]["mil"] * self.increment_mils[0]
147147
return xpos, ypos

0 commit comments

Comments
 (0)