Skip to content
This repository was archived by the owner on Jul 4, 2023. It is now read-only.

Fix typo in gerber.py for filling zeros in y value.#20

Open
lendres wants to merge 2 commits intohadleyrich:masterfrom
lendres:master
Open

Fix typo in gerber.py for filling zeros in y value.#20
lendres wants to merge 2 commits intohadleyrich:masterfrom
lendres:master

Conversation

@lendres
Copy link

@lendres lendres commented Aug 11, 2022

Line 248
From: x_digs_total
To: y_digs_total

It seems like the x total digits got used instead of the y total digits in this line.

Line 248
From: x_digs_total
To:      y_digs_total
The regular expression search for both X and Y at the same time is redundant and can be removed.  The searches for X and Y individually that follow it will catch cases where X and Y are combined.

The regular expression is searching for a substring of the line, not trying to match an entire line, therefore, it does not matter if X is alone or part of X and Y together on a single line.
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.

1 participant