From 34c08e3cbd2ed82d649af2dd500a2e353b69a646 Mon Sep 17 00:00:00 2001 From: Richard Lin Date: Mon, 15 Jul 2024 11:47:32 -0700 Subject: [PATCH] cleaning and renaming --- .../resources/SourceMeasureRangingCell.kicad_sch | 4 ++-- examples/test_usb_source_measure.py | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/resources/SourceMeasureRangingCell.kicad_sch b/examples/resources/SourceMeasureRangingCell.kicad_sch index 00d8b94b5..8a036e486 100644 --- a/examples/resources/SourceMeasureRangingCell.kicad_sch +++ b/examples/resources/SourceMeasureRangingCell.kicad_sch @@ -683,7 +683,7 @@ (symbol (lib_id "edg_importable:CurrentSenseResistor") (at 101.6 114.3 90) (mirror x) (unit 1) (in_bom yes) (on_board yes) (dnp no) (uuid a1aa08ce-d4a5-4dd6-a985-31fe75183a22) - (property "Reference" "res" (at 101.6 110.49 90) + (property "Reference" "isense" (at 101.6 110.49 90) (effects (font (size 1.27 1.27))) ) (property "Value" "#CurrentSenseResistor(resistance)" (at 101.6 111.76 90) @@ -702,7 +702,7 @@ (instances (project "SourceMeasureRangingCell" (path "/b55f6c44-5d5d-4524-bb86-893662f64598" - (reference "res") (unit 1) + (reference "isense") (unit 1) ) ) ) diff --git a/examples/test_usb_source_measure.py b/examples/test_usb_source_measure.py index 94f2fe24d..10922fb8c 100644 --- a/examples/test_usb_source_measure.py +++ b/examples/test_usb_source_measure.py @@ -58,8 +58,8 @@ def contents(self): }) self.sense_sw: AnalogMuxer # schematic-defined self.connect(self.control, self.sense_sw.control.request()) - self.res: CurrentSenseResistor - self.assign(self.actual_resistance, self.res.actual_resistance) + self.isense: CurrentSenseResistor + self.assign(self.actual_resistance, self.isense.actual_resistance) class RangingCurrentSenseResistor(Interface, KiCadImportableBlock, GeneratorBlock): @@ -813,10 +813,10 @@ def refinements(self) -> Refinements: (['control', 'int_link', 'sink_impedance'], RangeExpr.INF), # waive impedance check for integrator in - (['control', 'isense', 'ranges[0]', 'res', 'res', 'res', 'footprint_spec'], 'Resistor_SMD:R_1206_3216Metric'), - (['control', 'isense', 'ranges[0]', 'res', 'res', 'res', 'require_basic_part'], False), - (['control', 'isense', 'ranges[1]', 'res', 'res', 'res', 'footprint_spec'], ParamValue(['control', 'isense', 'ranges[0]', 'res', 'res', 'res', 'footprint_spec'])), - (['control', 'isense', 'ranges[1]', 'res', 'res', 'res', 'require_basic_part'], False), + (['control', 'isense', 'ranges[0]', 'isense', 'res', 'res', 'footprint_spec'], 'Resistor_SMD:R_1206_3216Metric'), + (['control', 'isense', 'ranges[0]', 'isense', 'res', 'res', 'require_basic_part'], False), + (['control', 'isense', 'ranges[1]', 'isense', 'res', 'res', 'footprint_spec'], ParamValue(['control', 'isense', 'ranges[0]', 'isense', 'res', 'res', 'footprint_spec'])), + (['control', 'isense', 'ranges[1]', 'isense', 'res', 'res', 'require_basic_part'], False), (['control', 'driver', 'high_fet', 'footprint_spec'], 'Package_TO_SOT_SMD:TO-252-2'), (['control', 'driver', 'high_fet', 'part_spec'], 'SQD50N10-8M9L_GE3'), @@ -830,7 +830,7 @@ def refinements(self) -> Refinements: (['oled', 'iref_res', 'require_basic_part'], False), # these are since the auto-assigned parts are OOS - (['control', 'isense', 'ranges[1]', 'res', 'res', 'res', 'part'], "1206W4F220LT5E"), + (['control', 'isense', 'ranges[1]', 'isense', 'res', 'res', 'part'], "1206W4F220LT5E"), (['conv', 'boost_sw', 'low_fet', 'part'], "KIA50N03BD"), (['prot_3v3', 'diode', 'part'], "1SMA4730AG") ],