Add support for Altium implied leading zeros omitted#340
Add support for Altium implied leading zeros omitted#340Argmaster merged 9 commits intoArgmaster:mainfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #340 +/- ##
=======================================
Coverage 93.50% 93.50%
=======================================
Files 149 149
Lines 6955 6957 +2
=======================================
+ Hits 6503 6505 +2
Misses 452 452
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
|
Please also address issues reported by CI. You can reproduce them locally by running |
|
Previously worked around using Poetry but now have everything sorted, fixed up the tree and removed the local/ directory from .gitignore, hook checks all pass, just need to do the test case. I'm new to github and pull requests, is it easier to just close this PR and open a new one with a correct branch (implied-lead-2)? I worked there from origin/main to avoid having to undo things and get into git-fu. Or better to push changes right to this branch? For the test, I made some random geometry and generated this gerber (zipped for github): The test: from pygerber.gerber.api import GerberFile, Style
from pygerber.examples import ExamplesEnum, get_example_path
path_to_gerber_file = #get_example_path(ExamplesEnum.Altium_01) #<- depends on test file zipped above
image = GerberFile.from_file(path_to_gerber_file).render_with_shapely(
Style.presets.BLACK_WHITE
)
image.save("output.svg") |
Thanks
The preferred way to handle updates for exisitng pull request is to keep the pull request open and contribute fixes to the same branch as initially. Github will automatically track changes on your branch and you will see them reflected by the PR. If you want to undo things via git use What I mean by discrupting reviewing process is that when you build on top of existing code, reviewer can skip parts of code which you didn't modify while complying with previous reviewer requests. If you force push a branch Github has tendency to forget which parts of code were marked as reviewed and reviewer will have to do all the work again. Since I have merged
This feature is not exposed enough to make it necessary to include sample files which ilustrate it within PyGerber release. |
…erber into feature/implied-leading
…erber into feature/implied-leading
|
Thanks so much for the detailed help, I think I've got everything in order now, tests pass. PS. I noticed that this page says |
Sure, no problem, we have to wait for the results on latest commit though.
Well, It would have been worth opening a ticked, but I already updated contribution guidelines yesterday, you can find it here, on |
Altium generates files with format specification
%FSAX...Y...%(noLfor leading zero omission). This change updates the grammar to accept an empty Zeros parameter defaulting to lead zero omission.