Skip to content

Commit

Permalink
Final touches
Browse files Browse the repository at this point in the history
  • Loading branch information
eeintech committed Feb 14, 2023
1 parent 9f379e9 commit 0fab0de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions src/kiutils/symbol.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,14 +229,9 @@ def id(self, symbol_id):
else:
self.entryName = symbol_id

# Update Value property
for property in self.properties:
if property.key == 'Value':
property.value = self.entryName

# Update units id to match parent id
for unit in self.units:
unit.id = self.id
unit.entryName = self.entryName

libraryNickname: Optional[str] = None
entryName: str = None
Expand Down
2 changes: 1 addition & 1 deletion tests/testdata/symbol/test_renameSymbol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
(property "Reference" "U" (id 0) (at 0 16.51 0)
(effects (font (size 1.27 1.27)))
)
(property "Value" "AD1853JRS" (id 1) (at 0 13.97 0)
(property "Value" "AD1853" (id 1) (at 0 13.97 0)
(effects (font (size 1.27 1.27)))
)
(property "Footprint" "Package_SO:SSOP-28_5.3x10.2mm_P0.65mm" (id 2) (at 0.635 -5.715 0)
Expand Down

0 comments on commit 0fab0de

Please sign in to comment.