Skip to content

Commit

Permalink
save and restore works as expected with new hash
Browse files Browse the repository at this point in the history
  • Loading branch information
MitjaNemec committed Oct 11, 2023
1 parent 17b9bfa commit 5370263
Show file tree
Hide file tree
Showing 6 changed files with 951 additions and 22 deletions.
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,14 @@ restore_layout_dialog_GUI.py
/SaveRestoreDestinationProject/fp-info-cache
/SaveRestoreSourceProject/save_restore_source_project-backups
/SaveRestoreDestinationProject/save_restore_destination_project-backups
/SaveRestoreDestinationProject/save_restore_destination_project_deep.kicad_pcb
/SaveRestoreDestinationProject/save_restore_destination_project_shallow_same.kicad_pcb
/SaveRestoreDestinationProject/save_restore_destination_project_shallow_same.kicad_pro
/SaveRestoreDestinationProject/save_restore_destination_project_shallow_same_alt.kicad_pcb
/SaveRestoreDestinationProject/save_restore_destination_project_shallow_same_alt.kicad_pro
/SaveRestoreSourceProject/test_deep.pckl
/SaveRestoreSourceProject/test_shallow.pckl
/SaveRestoreSourceProject/test_shallow_alt.pckl
/SaveRestoreSourceProject_path_issue/fp-info-cache
/SaveRestoreSourceProject_path_issue
/SaveRestoreDestinationProject/save_restore_destination_project_deep.kicad_pro
273 changes: 273 additions & 0 deletions relative_source/relative_1.kicad_sch
Original file line number Diff line number Diff line change
@@ -0,0 +1,273 @@
(kicad_sch (version 20230121) (generator eeschema)
(uuid bf958b11-f26e-429d-9cb0-d1379a98f463)
(paper "A4")
(lib_symbols
(symbol "Device:C" (pin_numbers hide) (pin_names (offset 0.254)) (in_bom yes) (on_board yes)
(property "Reference" "C" (at 0.635 2.54 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "C" (at 0.635 -2.54 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "" (at 0.9652 -3.81 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_keywords" "cap capacitor" (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_description" "Unpolarized capacitor" (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_fp_filters" "C_*" (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "C_0_1"
(polyline
(pts
(xy -2.032 -0.762)
(xy 2.032 -0.762)
)
(stroke (width 0.508) (type default))
(fill (type none))
)
(polyline
(pts
(xy -2.032 0.762)
(xy 2.032 0.762)
)
(stroke (width 0.508) (type default))
(fill (type none))
)
)
(symbol "C_1_1"
(pin passive line (at 0 3.81 270) (length 2.794)
(name "~" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
(pin passive line (at 0 -3.81 90) (length 2.794)
(name "~" (effects (font (size 1.27 1.27))))
(number "2" (effects (font (size 1.27 1.27))))
)
)
)
(symbol "Device:R" (pin_numbers hide) (pin_names (offset 0)) (in_bom yes) (on_board yes)
(property "Reference" "R" (at 2.032 0 90)
(effects (font (size 1.27 1.27)))
)
(property "Value" "R" (at 0 0 90)
(effects (font (size 1.27 1.27)))
)
(property "Footprint" "" (at -1.778 0 90)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_keywords" "R res resistor" (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_description" "Resistor" (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_fp_filters" "R_*" (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "R_0_1"
(rectangle (start -1.016 -2.54) (end 1.016 2.54)
(stroke (width 0.254) (type default))
(fill (type none))
)
)
(symbol "R_1_1"
(pin passive line (at 0 3.81 270) (length 1.27)
(name "~" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
(pin passive line (at 0 -3.81 90) (length 1.27)
(name "~" (effects (font (size 1.27 1.27))))
(number "2" (effects (font (size 1.27 1.27))))
)
)
)
)
(wire (pts (xy 101.6 38.1) (xy 104.14 38.1))
(stroke (width 0) (type default))
(uuid 02404da8-d183-40b2-bbad-52e68739866b)
)
(wire (pts (xy 73.66 38.1) (xy 76.2 38.1))
(stroke (width 0) (type default))
(uuid 34945df9-4923-4570-8336-61fd031de729)
)
(wire (pts (xy 111.76 38.1) (xy 114.3 38.1))
(stroke (width 0) (type default))
(uuid 9bbca38d-bb5d-4679-b902-2c8880361ea3)
)
(wire (pts (xy 25.4 38.1) (xy 27.94 38.1))
(stroke (width 0) (type default))
(uuid 9ed00619-16ff-42b5-b0c5-eac5107f99ae)
)
(wire (pts (xy 63.5 38.1) (xy 66.04 38.1))
(stroke (width 0) (type default))
(uuid daa468cd-6299-4e46-9c76-6359c6e73fa9)
)
(wire (pts (xy 35.56 38.1) (xy 38.1 38.1))
(stroke (width 0) (type default))
(uuid e47b1d68-2bce-447f-80e7-b848d998f432)
)
(hierarchical_label "out" (shape output) (at 114.3 38.1 0) (fields_autoplaced)
(effects (font (size 1.27 1.27)) (justify left))
(uuid 14de8ef5-817f-43aa-8b7b-2fe67b9ec393)
)
(hierarchical_label "in" (shape input) (at 25.4 38.1 180) (fields_autoplaced)
(effects (font (size 1.27 1.27)) (justify right))
(uuid 6657d6d1-f064-475b-af7f-0f69625f6cd1)
)
(symbol (lib_id "Device:R") (at 107.95 38.1 270) (unit 1)
(in_bom yes) (on_board yes) (dnp no)
(uuid 814bb940-89c6-4309-91c5-059e472952eb)
(property "Reference" "R802" (at 106.68 33.02 90)
(effects (font (size 1.27 1.27)))
)
(property "Value" "1k" (at 106.68 35.56 90)
(effects (font (size 1.27 1.27)))
)
(property "Footprint" "Resistor_SMD:R_1206_3216Metric" (at 107.95 36.322 90)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (at 107.95 38.1 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 52f00738-f161-47e7-bb80-d00fc7d03ee5))
(pin "2" (uuid 6c7d5b66-672d-483a-bdc3-7d4bf870d8b5))
(instances
(project "save_restore_source_project"
(path "/e63e39d7-6ac0-4ffd-8aa3-1841a4541b55/426a93e0-8cf2-42b5-88a7-fab21ad66c3e"
(reference "R802") (unit 1)
)
(path "/e63e39d7-6ac0-4ffd-8aa3-1841a4541b55/d708c8c6-05da-438b-b989-79e3f70dc2bf"
(reference "R1102") (unit 1)
)
)
)
)
(symbol (lib_id "Device:R") (at 31.75 38.1 270) (unit 1)
(in_bom yes) (on_board yes) (dnp no)
(uuid f673da9c-f6d4-468b-a70c-c9878cab46da)
(property "Reference" "R801" (at 30.48 33.02 90)
(effects (font (size 1.27 1.27)))
)
(property "Value" "1k" (at 30.48 35.56 90)
(effects (font (size 1.27 1.27)))
)
(property "Footprint" "Resistor_SMD:R_1206_3216Metric" (at 31.75 36.322 90)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (at 31.75 38.1 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 8ca441e7-98e7-4588-8e98-7e75dda28a4c))
(pin "2" (uuid e44c9bac-d6ee-4154-871f-94ed5bcc6aca))
(instances
(project "save_restore_source_project"
(path "/e63e39d7-6ac0-4ffd-8aa3-1841a4541b55/426a93e0-8cf2-42b5-88a7-fab21ad66c3e"
(reference "R801") (unit 1)
)
(path "/e63e39d7-6ac0-4ffd-8aa3-1841a4541b55/d708c8c6-05da-438b-b989-79e3f70dc2bf"
(reference "R1101") (unit 1)
)
)
)
)
(symbol (lib_id "Device:C") (at 69.85 38.1 90) (unit 1)
(in_bom yes) (on_board yes) (dnp no)
(uuid f78912d1-503e-4547-a878-3ea562bda6dc)
(property "Reference" "C801" (at 71.12 41.91 90)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "100n" (at 72.39 44.45 90)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "Capacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolder" (at 73.66 37.1348 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (at 69.85 38.1 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid dbf9e78b-3ef7-49e4-a371-358a9d08b9ce))
(pin "2" (uuid 0a2cbdd4-037d-4960-83ee-33b78e8b39ba))
(instances
(project "save_restore_source_project"
(path "/e63e39d7-6ac0-4ffd-8aa3-1841a4541b55/426a93e0-8cf2-42b5-88a7-fab21ad66c3e"
(reference "C801") (unit 1)
)
(path "/e63e39d7-6ac0-4ffd-8aa3-1841a4541b55/d708c8c6-05da-438b-b989-79e3f70dc2bf"
(reference "C1101") (unit 1)
)
)
)
)
(sheet (at 38.1 25.4) (size 25.4 25.4) (fields_autoplaced)
(stroke (width 0.1524) (type solid))
(fill (color 0 0 0 0.0000))
(uuid 21bc30d9-d37e-4596-9499-29e7bd94bb09)
(property "Sheetname" "relative_2_a" (at 38.1 24.6884 0)
(effects (font (size 1.27 1.27)) (justify left bottom))
)
(property "Sheetfile" "relative_2.kicad_sch" (at 38.1 51.3846 0)
(effects (font (size 1.27 1.27)) (justify left top))
)
(pin "out" output (at 63.5 38.1 0)
(effects (font (size 1.27 1.27)) (justify right))
(uuid 653e8625-8f5f-4f64-bb54-45b247b1e8b2)
)
(pin "in" input (at 38.1 38.1 180)
(effects (font (size 1.27 1.27)) (justify left))
(uuid b7536aa3-41af-495a-a1c7-f2bdd4664b0b)
)
(instances
(project "save_restore_source_project"
(path "/e63e39d7-6ac0-4ffd-8aa3-1841a4541b55/426a93e0-8cf2-42b5-88a7-fab21ad66c3e" (page "#"))
(path "/e63e39d7-6ac0-4ffd-8aa3-1841a4541b55/d708c8c6-05da-438b-b989-79e3f70dc2bf" (page "#"))
)
)
)
(sheet (at 76.2 25.4) (size 25.4 25.4) (fields_autoplaced)
(stroke (width 0.1524) (type solid))
(fill (color 0 0 0 0.0000))
(uuid a18f0f90-8c9d-4891-a557-e07561bab10e)
(property "Sheetname" "relative_2_b" (at 76.2 24.6884 0)
(effects (font (size 1.27 1.27)) (justify left bottom))
)
(property "Sheetfile" "relative_2.kicad_sch" (at 76.2 51.3846 0)
(effects (font (size 1.27 1.27)) (justify left top))
)
(pin "out" output (at 101.6 38.1 0)
(effects (font (size 1.27 1.27)) (justify right))
(uuid 52730e4b-4c0d-42fd-8e0c-e1848ab98a99)
)
(pin "in" input (at 76.2 38.1 180)
(effects (font (size 1.27 1.27)) (justify left))
(uuid a0bae46d-c2bf-4a9b-aff2-bccafc1f1593)
)
(instances
(project "save_restore_source_project"
(path "/e63e39d7-6ac0-4ffd-8aa3-1841a4541b55/426a93e0-8cf2-42b5-88a7-fab21ad66c3e" (page "#"))
(path "/e63e39d7-6ac0-4ffd-8aa3-1841a4541b55/d708c8c6-05da-438b-b989-79e3f70dc2bf" (page "#"))
)
)
)
)
Loading

0 comments on commit 5370263

Please sign in to comment.