-
Notifications
You must be signed in to change notification settings - Fork 80
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
Treat some DRC Errors as Warnings #18
Comments
Is almost ready in this branch: |
Wow! I am going to test it right now.
…--
Leandro Heck
On Tue, Jun 9, 2020 at 2:25 PM Salvador E. Tropea ***@***.***> wrote:
Is almost ready in this branch:
https://github.com/INTI-CMNB/kiplot/tree/drc_errors
Will merge tomorrow.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#18 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJX7YAHNC6ICKHH4CQPDDLRVZWADANCNFSM4NVP6RBA>
.
|
I am not sure how to use it with Do you mind explaining this? I believe that I can also add something in the |
Let me check.
For instance, I have these 2 errors.
How do I create a filter to filter out jut the 1st one? I believe a second regexp (you are calling
|
The regex term gives 16.1M hits on Google, regexp 5.8M. So I'll keep regex. And nope, only one regular expression. Regular expressions are really powerful, you don't need more than one. Perhaps we need to adjust the flags in the code, didn't try complex matches, but one should be enough. I think your case should be covered by:
|
The current output is this:
Maybe it is good to show to the user the filter message to remember the filters being applied as in:
|
:-)
Try the following regex:
Regular expressions are really powerful, you can do logic operations too.
Matches both, but not a violation involving C16 and a component that isn't C19 or C201.
I really preffer less typing.
I know our former president is a friend of yours ;-)
I understand, but we are talking about Python regular expressions in this context the term is https://docs.python.org/3/library/re.html |
This is more complex than it looks. I'm thinking about adding a warning message |
DRC/ERC error filters closes johnbeard#18
Cool, thanks. I know a little bit of regexp, so my question was more related to know how you are applying it. Are you applying it in the whole DRC log or you are applying each pattern for each DRC error? This changes the way you build the expression. |
Each error is processed individually. As one string including the \n character to separate the lines. |
Hi @leoheck! |
@set-soft
You have implemented a new way to filter out DRC issues with an external file in your fork of the kicad-automation-scripts following the discussion started on this issue INTI-CMNB/kicad_ci_test#5 (comment)
This approach looks promising since the designer would have control being able to decide if the DRC errors sound. For instance, when the designer is implementing something not expected by the DRC checker.
This is just a reminder, to add this functionality in your fork of the kiplot if possible.
The text was updated successfully, but these errors were encountered: