From 0fd29549fccf0f135ac7585387ff55fa858a2f12 Mon Sep 17 00:00:00 2001 From: iopapamanoglou Date: Thu, 29 Aug 2024 04:33:20 +0200 Subject: [PATCH] capacitor instances; all TESTS PASS --- src/faebryk/library/Capacitor.py | 6 +++--- test/exporters/netlist/kicad/test_netlist_kicad.py | 5 ----- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/faebryk/library/Capacitor.py b/src/faebryk/library/Capacitor.py index ecb132a8..9519b01d 100644 --- a/src/faebryk/library/Capacitor.py +++ b/src/faebryk/library/Capacitor.py @@ -25,9 +25,9 @@ class TemperatureCoefficient(IntEnum): unnamed = L.if_list(2, F.Electrical) - capacitance = F.TBD[Quantity]() - rated_voltage = F.TBD[Quantity]() - temperature_coefficient = F.TBD[TemperatureCoefficient]() + capacitance: F.TBD[Quantity] + rated_voltage: F.TBD[Quantity] + temperature_coefficient: F.TBD[TemperatureCoefficient] attach_to_footprint: F.can_attach_to_footprint_symmetrically designator_prefix = L.f_field(F.has_designator_prefix_defined)("C") diff --git a/test/exporters/netlist/kicad/test_netlist_kicad.py b/test/exporters/netlist/kicad/test_netlist_kicad.py index 9ac0dec9..2118a5fd 100644 --- a/test/exporters/netlist/kicad/test_netlist_kicad.py +++ b/test/exporters/netlist/kicad/test_netlist_kicad.py @@ -214,8 +214,3 @@ def test_netlist(self): ok, _ = _test_netlist_graph() self.assertTrue(ok) - - -import typer - -typer.run(TestNetlist().test_netlist)