Commit Graph

32 Commits

Author SHA1 Message Date
SET 1a83f34de4 Added tests for fails and variants in the library path guess
Also switched all to pytest.monkeypatch to make it uniform.
2020-08-15 19:30:04 -03:00
SET 0908a6b599 Added more tests for KiCad config.
No HOME environment variable, guess lib path, determine lib path
from env.
2020-08-15 16:13:10 -03:00
SET 2e1e8a78f3 Made KiCad config errors more readable. 2020-08-15 12:40:13 -03:00
SET 8ba17872dc Recoded get_user_fields.
The previous implementation worked but if we fail to load any of the
default fields we could fail to return one of the user defined ones.
The new code is more robust.
Also commented get_field_names that isn't currently used.
2020-08-15 11:04:25 -03:00
SET 10c910fa39 Fixed DCM error line number not properly reseted 2020-08-15 11:03:12 -03:00
SET 094e821395 Excluded from coverage code I'm not currently using. 2020-08-14 19:57:12 -03:00
SET a237865787 Fixed missing argument in "Missing sub-sheet name" error 2020-08-14 18:58:34 -03:00
SET de897b45a3 Made the SCH bitmap parser stronger 2020-08-14 18:40:25 -03:00
SET 68c9b0c87d Fixed SchematicWire.load returning SchematicText 2020-08-14 18:39:33 -03:00
SET 289766dbc0 Fixed extra parameters in warning call. 2020-08-14 18:01:41 -03:00
SET 05fe7fc62e Removed redundant code. 2020-08-14 18:01:03 -03:00
SET 2452d000c7 Fixed the logic used to collect basic component fields 2020-08-14 17:28:44 -03:00
SET a8b92f41c9 Fixed the maximum index for internal component labels 2020-08-14 16:53:03 -03:00
SET 18a224adb9 Changed one of the nknown DCM entry errors to make them different. 2020-08-14 16:42:20 -03:00
SET e9f27e2b5e Fixed problems when failed to load a component from a lib. 2020-08-14 16:24:18 -03:00
SET 5e55f661f8 Fixed calls to SchLibError with extra args 2020-08-14 15:57:08 -03:00
SET d4612a2521 Fixed use of DCM get_line for LIBs
Also modified both functions to raise SchLibError instead of SchFileError
2020-08-14 14:27:15 -03:00
SET 65f8882669 Fixed the file name for errors in lib and dcm
While loading a schematic.
2020-08-14 14:13:20 -03:00
SET 0485ac4f5c Fixed problems for error situations in SCH files.
- 'Unexpected end of file' missed arguments
- LibComponentField used SchematicField
- Problems when a component stated with an empty line
2020-08-14 13:46:21 -03:00
SET d26c9a39bd Modified the "human readable" sheet path to be "/" for the root sheet.
Not just empty.
2020-08-12 09:46:46 -03:00
SET 4502860f79 Fixed SCH "Image" load 2020-08-12 09:45:15 -03:00
SET 148b4887ce Fixed SCH "Entry" load 2020-08-12 09:43:19 -03:00
SET 4fa2267021 Fixed "exclude_any" logic. 2020-08-11 18:19:28 -03:00
SET 6d09d662be Fixed flake8 style details 2020-08-11 12:46:36 -03:00
SET fae2a024dd Optimized field names collection.
Now they are collected on the fly. No need to visit all the components
again.
2020-08-10 19:56:52 -03:00
SET 67cc8e9fca Enabled LibAlias.__str__ member.
Is used only for debug, but helps.
2020-08-10 18:58:36 -03:00
Salvador E. Tropea 71c87bf2ea Optimized the list of fields reported by the components.
Avoiding to iterate on fields that we'll reject and also providing the
value in the same operation.
2020-08-01 19:11:58 -03:00
Salvador E. Tropea 64576e3975 Moved some repeated code in BoM writers.
All the writers computed some stats. Now they are computed in one place
avoiding repetition.
2020-08-01 16:55:33 -03:00
Salvador E. Tropea 984b81fea1 Added support for "Description" BoM column.
For this we are loading:
- The KiCad configuration
- The default and project symbol libs tables
- All the used libs
- All the used DCMs
2020-07-31 11:58:07 -03:00
Salvador E. Tropea 9d3645fa41 Implemented the 'Sheetpath' column. 2020-07-28 20:05:50 -03:00
Salvador E. Tropea d8ff6c92aa Implemented 'Part Lib' and 'Footprint Lib' columns. 2020-07-28 19:40:56 -03:00
Salvador E. Tropea f824bee832 Added KiCad v5.x schematic support.
It provides extra information, like which files are part of the
Schematic.
Library components not yet implemented.
2020-07-27 22:01:12 -03:00