Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Core: KiCAD Sch Fileformat #60

Merged
merged 20 commits into from
Sep 13, 2024
Merged

Conversation

mawildoer
Copy link
Contributor

@mawildoer mawildoer commented Sep 12, 2024

Description

Add KiCAD schematic fileformat support

Fixes # (issue)

Checklist

Please read and execute the following:

  • My code follows the coding guidelines of this project
  • My PR title is following the contribution guidelines
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (if applicable)
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I ran Black to format my code

Code of Conduct

By submitting this issue, you agree to follow our Code of Conduct:

@mawildoer mawildoer force-pushed the mawildoer/kicad-schematic-exporter-2 branch from 51f3392 to bd03830 Compare September 13, 2024 01:38
@mawildoer mawildoer changed the title KiCAD Sch Exporter Core: KiCAD Sch Fileformat Sep 13, 2024
@@ -123,7 +124,8 @@ def connect(self, other: Self, linkcls=None) -> Self:
self.G.add_edge(self, other, link=link)

if logger.isEnabledFor(logging.DEBUG):
logger.debug(f"GIF connection: {link}")
with exceptions_to_log():
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to add this because with logging at debug it failed to import this file

The stringification of some edge in the graph was hitting a NotNone assertion

This is the best solution IMO though because we shouldn't be killing the program with debug exceptions that might just be caused by import-time execution

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for clarifying!

@mawildoer mawildoer marked this pull request as ready for review September 13, 2024 01:47
@iopapamanoglou iopapamanoglou merged commit 9586bf9 into main Sep 13, 2024
2 checks passed
@iopapamanoglou iopapamanoglou deleted the mawildoer/kicad-schematic-exporter-2 branch September 13, 2024 10:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants