From ee3919fff6df5d6fbd5b801864d3fee0ea8ee2af Mon Sep 17 00:00:00 2001 From: Richard Lin Date: Fri, 23 Aug 2024 17:15:32 -0700 Subject: [PATCH] cleaner --- edg/parts/test_JlcCapacitor.py | 2 +- edg/parts/test_resistor.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/edg/parts/test_JlcCapacitor.py b/edg/parts/test_JlcCapacitor.py index 9257d287b..edf660b46 100644 --- a/edg/parts/test_JlcCapacitor.py +++ b/edg/parts/test_JlcCapacitor.py @@ -40,7 +40,7 @@ def test_capacitor_part(self) -> None: def test_capacitor_min_package(self) -> None: compiled = ScalaCompiler.compile(JlcCapacitorTestTop, Refinements( - instance_values=[(['dut', 'footprint_area'], Range(4.0, float('inf')))] + instance_values=[(['dut', 'footprint_area'], Range.from_lower(4.0))] )) self.assertEqual(compiled.get_value(['dut', 'fp_footprint']), 'Capacitor_SMD:C_0603_1608Metric') self.assertEqual(compiled.get_value(['dut', 'fp_part']), '0603B103K500NT') diff --git a/edg/parts/test_resistor.py b/edg/parts/test_resistor.py index f8fdaf69e..ea96f5776 100644 --- a/edg/parts/test_resistor.py +++ b/edg/parts/test_resistor.py @@ -56,7 +56,7 @@ def test_non_e12_resistor(self) -> None: def test_min_package(self) -> None: compiled = ScalaCompiler.compile(ResistorTestTop, Refinements( - instance_values=[(['dut', 'footprint_area'], Range(4.0, float('inf')))] + instance_values=[(['dut', 'footprint_area'], Range.from_lower(4.0))] )) self.assertEqual(compiled.get_value(['dut', 'fp_footprint']), 'Resistor_SMD:R_0603_1608Metric') self.assertEqual(compiled.get_value(['dut', 'fp_value']), '1k, 1%, 0.1 W')