Salvador E. Tropea
3977a55d4a
Fixed indentation
2020-10-19 13:36:49 -03:00
Salvador E. Tropea
8a87a677e2
Fixed plot constant names
...
Too much cut & paste
2020-10-19 13:36:02 -03:00
Salvador E. Tropea
4fff3d27e9
KiCad 5.99 no longer supports PCB_PLOT_PARAMS.SetLineWidth()
2020-10-19 13:13:21 -03:00
Salvador E. Tropea
3579080e15
Added workaround for KiCad 5.99 bug.
...
PCB_PLOT_PARAMS.SetPlotMode argument values (SKETCH and FILLED) are
missing.
https://gitlab.com/kicad/code/kicad/-/issues/6070
2020-10-19 13:11:30 -03:00
Salvador E. Tropea
127ad89483
Added the name of the error to the tests when it fails.
...
Not just the error level.
2020-10-19 13:10:24 -03:00
Salvador E. Tropea
9c876d5783
Removed dead code in macros.py
2020-10-17 16:51:17 -03:00
Salvador E. Tropea
d850bb8ffe
Merge pull request #19 from INTI-CMNB/try_mcpyrate
...
Replace mcpy by mcpyrate
2020-10-17 15:28:40 -03:00
Salvador E. Tropea
52a29c26d7
Implemented `de_activate` in mcpyrate.activate
...
This disables macros after loading the plug-ins.
Now the timing is 160 ms, 30% faster than `mcpy` and 4 times faster
than `macropy`
2020-10-17 15:01:21 -03:00
Salvador E. Tropea
307e553534
Added more info to the plug-ins load fail.
...
Trying to see why it fails (not in my docker image?!)
2020-10-17 12:03:33 -03:00
Salvador E. Tropea
2d55859782
Code style fixes (flake8)
2020-10-17 12:03:06 -03:00
Salvador E. Tropea
4538163e7e
Removed all the code related to Python cache.
2020-10-17 12:01:52 -03:00
Salvador E. Tropea
c29b5902c2
Enhanced the document macro coverage info.
...
- Recycled the s.value Str as @Technologicat suggested
- Added line number info to the target Name as I learned from the
experiments test,
2020-10-17 11:11:24 -03:00
Salvador E. Tropea
5a24d72772
Updated mcpyrate, now the time is 260 ms, just 13% over mcpy
2020-10-17 10:17:25 -03:00
Salvador E. Tropea
43278717e9
Updated mcpyrate, now the cache can be enabled.
...
This compensates most of the speed penalty:
macropy: ~650 ms (has cache)
mcpyrate no cache: 440 ms
mcpyrate: 290 ms
mcpy: 230 ms (no cache)
2020-10-17 09:48:07 -03:00
Salvador E. Tropea
17aafd88a0
Adapted the speed meassurement script
2020-10-16 19:26:07 -03:00
Salvador E. Tropea
087ef2bbb0
Trying to fix coverage details using copy_location
2020-10-16 18:58:51 -03:00
Salvador E. Tropea
17e75236da
KiCad 6 no longer has SetPlotPadsOnSilkLayer
2020-10-16 18:40:20 -03:00
Salvador E. Tropea
fec0091712
Added support for KiCad 6 to drill outputs.
...
I wonder why KiCad 6 doesn't provide a compatibility function for
GetAuxOrigin. The project seems to be trying to reduce the ammount
of code (removing old code) at the cost of breaking every existing
plug-in.
2020-10-16 17:04:37 -03:00
Salvador E. Tropea
ae9e889bc0
Added debug information to out_bom to detect the line numbers issue.
2020-10-16 16:32:24 -03:00
Salvador E. Tropea
7c7549e6d7
Changed mcpy by mcpyrate to test its functionality.
2020-10-16 15:32:00 -03:00
Salvador E. Tropea
235e4831a8
Avoid loading KiCad 6 schematics.
...
Waiting for the Python bindings.
2020-10-15 18:53:44 -03:00
Salvador E. Tropea
17dd1d1be6
Added support to detect KiCad 6 schematics.
2020-10-15 18:53:15 -03:00
Salvador E. Tropea
4a97885495
Added support for KiCad 6 error filters.
2020-10-15 17:00:58 -03:00
Salvador E. Tropea
9bb42eda9a
Added support for the new EDGE_MODULE name: FP_SHAPE
...
KiCad 6 is renaming part of the API without providing compatibility
aliases.
2020-10-14 16:08:21 -03:00
Salvador E. Tropea
d2913f0bb4
Normalized the warning numbers to be 3 digits
2020-10-14 16:05:18 -03:00
Salvador E. Tropea
257a6ff2fa
Added support for --mirror pcbnew_do export option.
...
It currently works only for KiCad 5.99
2020-10-14 12:34:00 -03:00
Salvador E. Tropea
86ead74c27
Added KiBot warning filters.
...
- Closes #15
- This patch also changes the logging initialization, that was broken at
some recent point.
- Also adds tests to ensure the mechanism used to avoid repeated
warnings is working.
2020-10-12 16:31:47 -03:00
Salvador E. Tropea
c8e81a4668
Added numbers to all the warnings
2020-10-09 18:33:51 -03:00
Salvador E. Tropea
1aee407cb9
Fixed KiBom variants special cases.
...
When using multiple variants and a components used more than one,
specifying oposite rules.
2020-10-09 16:00:52 -03:00
Salvador E. Tropea
71fe37cfc6
Support for new `pcbnew_do export` options.
2020-10-09 11:27:30 -03:00
Salvador E. Tropea
5a50477f7c
Sorted the DNF/DNC values in the docs.
2020-10-09 11:23:40 -03:00
Salvador E. Tropea
43bf78bfb9
Added some help about filters and variants.
2020-09-28 19:25:04 -03:00
Salvador E. Tropea
659ae27e7b
Fixed small flake8 details
2020-09-21 20:02:50 -03:00
Salvador E. Tropea
7a7fc0a87d
Fixed log warning detail.
...
Cases when % was in the string but not for C style.
2020-09-21 20:02:03 -03:00
Salvador E. Tropea
ec1e6f6e02
Fixed debug log entry that wasn't removed.
2020-09-21 19:37:10 -03:00
Salvador E. Tropea
c59c31fb6e
Added support for KiCad v6 to the position output.
2020-09-21 19:17:31 -03:00
Salvador E. Tropea
93863788e7
Better log.warning messages
...
- Corrent source for Python 3.8+
- Support for C style formatted strings
2020-09-21 19:15:44 -03:00
Salvador E. Tropea
ed7eae0338
Added support to load pcbnew from nightly.
2020-09-21 19:14:31 -03:00
Salvador E. Tropea
27e4c23236
Added support for reference separator in BoMs.
...
So you can get things like "R1, R2, R3"
From the following PR: SchrodingersGat/KiBoM#139
by @n0dyjeff
2020-09-19 17:35:31 -03:00
Salvador E. Tropea
1ed960d045
Replaced dicts used just to test membership by sets.
2020-09-12 12:50:16 -03:00
Salvador E. Tropea
f131be6bd9
Bumped version to 0.7.0
2020-09-11 17:55:03 -03:00
Salvador E. Tropea
af567b611f
Bumped version to 0.7.0rc2
2020-09-11 12:54:33 -03:00
Salvador E. Tropea
bef2203b24
Changed the layer number used to disable *.Adhes
...
Using undefined generates errors.
Now using "Rescue" layer.
2020-09-11 12:51:33 -03:00
Salvador E. Tropea
80005f2871
Fixed: solder paste and adhesive glue should also removed for print
2020-09-11 12:50:14 -03:00
Salvador E. Tropea
5be4a64293
Bumped version to 0.7.0rc1
2020-09-10 16:03:03 -03:00
Salvador E. Tropea
f38b63236d
Avoid repeating the same warning.
...
Also report a warnings count.
2020-09-10 15:50:53 -03:00
Salvador E. Tropea
6b21f00a65
Removed extra blanck line.
2020-09-10 15:47:18 -03:00
Salvador E. Tropea
512776ce8e
Added a mechanism to set a default variant for all outputs.
...
It can be used to overwrite the output file template too.
2020-09-10 12:56:53 -03:00
Salvador E. Tropea
709d6facb9
Fixed warnings when printing a schematic variant.
...
We use a temporal copy of the schematic in a temporal dir.
So now we add a dummy .pro file to avoid warnings.
2020-09-10 12:54:43 -03:00
Salvador E. Tropea
c522fa003e
Fixed problems with 3D relative models in STEP output
...
When using a variant and one or more 3D models were stored in a
relative path the STEP file didn't contain them.
This is because we use a temporal PCB and it was stored in /tmp
Now is stored in the same directory as the real PCB.
2020-09-10 12:52:07 -03:00