Skip to content

Commit

Permalink
cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
ducky64 committed Aug 24, 2024
1 parent 8b7cd27 commit ee3919f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion edg/parts/test_JlcCapacitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion edg/parts/test_resistor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit ee3919f

Please sign in to comment.