Skip to content

Commit

Permalink
Merge branch 'maintenance/2.0.x' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Argmaster committed Sep 11, 2023
2 parents 1f0a1ea + 8ef45bb commit d5c3f25
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ this project adheres to [Calendar Versioning](https://calver.org/).
## Release 2.0.1

- Fixed names of Gerber specification files (`.pdf.pdf` extension replaced with `.pdf`)
- Added `draw_region_outlines` option (disabled by default) which controls whether lines
which make up a region boundary should be drawn after region is filled. KiCAD seem to
assume that those boundaries are not drawn and region outline is 1px instead of
thickness of aperture.
- Changed `Decimal` precision to 60 decimal places.
- Changed precision of `INCH_TO_MM_MULTIPLIER` (now its 25.4) and
`MM_TO_INCH_MULTIPLIER` (dynamically calculated with `Decimal`).
- Changed circle aperture to make result better match expectations and `KiCAD`
reference.
- Fixed warning message logged every time a valid region was created to show up only
when region is not valid.
- Added warnings for zero surface aperture draws.

## Release 2.0.0

Expand Down
10 changes: 10 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
coverage:
status:
project:
default:
informational: true
target: 90%
threshold: 1%
patch:
default:
informational: true
2 changes: 1 addition & 1 deletion src/pygerber/gerberx3/tokenizer/tokens/g3n_region.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def update_drawing_state(
if not state.is_region:
logging.warning("Ending region which was not started.")

if len(state.region_boundary_points):
if len(state.region_boundary_points) == 0:
logging.warning("Created region with no boundaries.")

draw_command = backend.get_draw_region_cls()(
Expand Down

0 comments on commit d5c3f25

Please sign in to comment.