Skip to content

Commit c9363a4

Browse files
committed
fix
1 parent 1892be1 commit c9363a4

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

edg/abstract_parts/CustomDiode.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ def __init__(self, *args: Any, footprint_spec: StringLike = "",
2222

2323
def generate(self) -> None:
2424
self.footprint(
25-
self.standard_footprint().REFDES_PREFIX, self.footprint_spec,
26-
self.standard_footprint()._make_pinning(self, self.get(self.footprint_spec)),
25+
self._standard_footprint().REFDES_PREFIX, self.footprint_spec,
26+
self._standard_footprint()._make_pinning(self, self.get(self.footprint_spec)),
2727
mfr=self.manufacturer_spec, part=self.part_spec,
2828
value=self.part_spec,
2929
datasheet=""

edg/abstract_parts/CustomFet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ def __init__(self, *args: Any, footprint_spec: StringLike = "",
2525

2626
def generate(self) -> None:
2727
self.footprint(
28-
self.standard_footprint().REFDES_PREFIX, self.footprint_spec,
29-
self.standard_footprint()._make_pinning(self, self.get(self.footprint_spec)),
28+
self._standard_footprint().REFDES_PREFIX, self.footprint_spec,
29+
self._standard_footprint()._make_pinning(self, self.get(self.footprint_spec)),
3030
mfr=self.manufacturer_spec, part=self.part_spec,
3131
value=self.part_spec,
3232
datasheet=""

edg/abstract_parts/GenericResistor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ def generate(self) -> None:
5757
self.assign(self.actual_power_rating, Range.zero_to_upper(suitable_packages[0][0]))
5858

5959
self.footprint(
60-
self.standard_footprint().REFDES_PREFIX, suitable_packages[0][1],
61-
self.standard_footprint()._make_pinning(self, suitable_packages[0][1]),
60+
self._standard_footprint().REFDES_PREFIX, suitable_packages[0][1],
61+
self._standard_footprint()._make_pinning(self, suitable_packages[0][1]),
6262
value=f'{UnitUtils.num_to_prefix(selected_center, 3)}, {tolerance * 100:0.3g}%, {suitable_packages[0][0]} W',
6363
)
6464

edg/abstract_parts/PartsTablePart.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ class PartsTableSelectorFootprint(PartsTableFootprintFilter, FootprintBlock, Has
116116
def _row_generate(self, row: PartsTableRow) -> None:
117117
super()._row_generate(row)
118118
self.footprint(
119-
self.standard_footprint().REFDES_PREFIX, row[self.KICAD_FOOTPRINT],
120-
self.standard_footprint()._make_pinning(self, row[self.KICAD_FOOTPRINT]),
119+
self._standard_footprint().REFDES_PREFIX, row[self.KICAD_FOOTPRINT],
120+
self._standard_footprint()._make_pinning(self, row[self.KICAD_FOOTPRINT]),
121121
mfr=row[self.MANUFACTURER_COL], part=row[self.PART_NUMBER_COL],
122122
value=row[self.DESCRIPTION_COL],
123123
datasheet=row[self.DATASHEET_COL]

edg/abstract_parts/StandardFootprint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class HasStandardFootprint(Block):
4545
Callable[[], Type[StandardFootprint[Self]]]]]
4646

4747
@classmethod
48-
def standard_footprint(cls) -> Type[StandardFootprint[Self]]:
48+
def _standard_footprint(cls) -> Type[StandardFootprint[Self]]:
4949
"""Returns the StandardFootprint class for this block"""
5050
if callable(cls._STANDARD_FOOTPRINT):
5151
return cls._STANDARD_FOOTPRINT() # type: ignore

edg/parts/JlcElectrolyticCapacitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def parse_row(row: PartsTableRow) -> Optional[Dict[PartsTableColumn, Any]]:
3838
else:
3939
return None
4040

41-
if new_cols[cls.KICAD_FOOTPRINT] not in cls.standard_footprint()._footprint_pinning_map():
41+
if new_cols[cls.KICAD_FOOTPRINT] not in cls._standard_footprint()._footprint_pinning_map():
4242
return None
4343

4444
new_cols.update(cls._parse_jlcpcb_common(row))

0 commit comments

Comments
 (0)