Skip to content

Commit

Permalink
add test vpwl
Browse files Browse the repository at this point in the history
  • Loading branch information
boyang2022 committed Mar 4, 2024
1 parent 6206230 commit 76efb34
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions _unittest/test_21_Circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,3 +809,14 @@ def test_45_create_circuit_from_multizone_layout(self, add_edb):
self.aedtapp.insert_design("test_45")
self.aedtapp.connect_circuit_models_from_multi_zone_cutout(project_connexions, edb_zones, defined_ports)
assert [mod for mod in list(self.aedtapp.modeler.schematic.components.values()) if "PagePort" in mod.name]

def test_46_create_vpwl(self):
myres = self.aedtapp.modeler.schematic.create_voltage_pwl(
compname="V1", time_list=[0, "1u"], voltage_list=[0, 1]
)
assert myres.refdes != ""
assert type(myres.id) is int
assert myres.parameters["time1"] == "0"
assert myres.parameters["time2"] == "1u"
assert myres.parameters["val1"] == "0"
assert myres.parameters["val2"] == "1"

0 comments on commit 76efb34

Please sign in to comment.