Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/improvements #117

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

andy9a9
Copy link

@andy9a9 andy9a9 commented Jul 10, 2024

  • replace if with elif where possible
    • if the first condition is true the next one can not be, so it doesn't make any sense to use the next if condition. This has a bunch of improvements on performance.
  • add generator_version attribute into symbol and footprint
    • Kicad v8 has this attribute defined to "8.0". So once reading/writing this kind of file the value shouldn't disappear.

If first condition is true the next one can not be. Simplify condition
validation. On the other hand, this has performance improvement.

Signed-off-by: Andrej Valek <[email protected]>
Kicad v8 has this attribute defined to "8.0". So once reading/writing this
kind of file the value shouldn't disappear. Keep it backport compatible
with older version, where this attribute does not exist.

Signed-off-by: Andrej Valek <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant