Commit Graph

270 Commits

Author SHA1 Message Date
SET 71d1ee3bc7 Added better generic example generation.
To add more realistic defaults.
2020-08-15 23:59:39 -03:00
SET 361c9caff9 Encapsulated the global variables. 2020-08-15 22:18:35 -03:00
SET 6dd77be66d Cut extra long line. 2020-08-15 22:18:12 -03:00
SET ae54e7bc84 Now the variant option can be a list. 2020-08-15 20:32:10 -03:00
SET d8965218ed Fixed variant details related to case sensitiviness 2020-08-15 20:31:07 -03:00
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 af5c4387fa Added catch for KiConfError 2020-08-15 12:40:57 -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 422f8b134a Added SCH dependencies dump when using -vv or more 2020-08-14 19:33:38 -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 815e475b8d Added tests to exclude PCB and/or Stats info in CSV files. 2020-08-14 11:13:45 -03:00
SET ea8f318696 Added tests for TXT and quote_all 2020-08-14 10:21:21 -03:00
SET 552c3f861a Fixed separator for TSV and TXT 2020-08-14 10:20:29 -03:00
SET 7aaaa45eb2 Commented dead code.
Now that we guess the units from the prefix there is no need to match
missing units against known units.
2020-08-13 23:06:19 -03:00
SET e35ef8ec3c Added options to normalize R, L and C values. 2020-08-13 22:45:25 -03:00
SET ed538d9679 Reduced the calls to the complex value parsing in units.py
Now we call it just once for each component and store the result.
Then we use the stored value instead of computing it over and over.
In this way we save time and warnings about malformed values are
reported once. It reduced the number of warnings in the test case
from 39 to 3.
2020-08-13 21:43:28 -03:00
SET 02978aceb8 Removed extra spaces (flake8 details) 2020-08-13 20:18:22 -03:00
SET 3224a44173 Added test for decimal point locale support.
Hopefully works on docker ...
2020-08-13 16:59:12 -03:00
SET b50aaf7806 Added support for locale's decimal point. 2020-08-13 13:11:27 -03:00
SET bfc6e07481 Avoid to apply RLC sorting to "RL*" components.
Also apply it to "RV*" and "RT*"
2020-08-13 12:58:21 -03:00
SET 73d7af9e1d Code clean-up and better error report in units.py 2020-08-13 12:41:26 -03:00
SET 40f1a9da34 Added some comments about unreachable code in units.py
Also removed some empty lines.
2020-08-13 11:28:15 -03:00
SET 50826a80c1 Fixed ohm symbol detection
We use lowercase matching so we have to match with lowercase omega.
2020-08-13 11:26:29 -03:00
SET 548981e27e Added support for micro, not just mu.
Now both are supported:
GREEK SMALL LETTER MU U+03BC
MICRO SIGN U+00B5
2020-08-13 11:23:48 -03:00
SET 8d79101a36 Removed the dots used to keep the indentation in the YAML example. 2020-08-12 20:07:47 -03:00
SET fc43a293e4 Fixed missing : in exclude_any example. 2020-08-12 20:07:06 -03:00
SET 270ab0b70e Moved all the common HTML and XLSX options to a base class
To avoid repetition.
2020-08-12 19:32:14 -03:00
SET c263859de6 Made the "Total Compomponents" label coherent between HTML and XLSX 2020-08-12 19:12:35 -03:00
SET ec70ac23c3 Excluded from coverage the lines ocluded by the macros. 2020-08-12 15:56:29 -03:00
SET 2196d498ff Fixed "generate_dnf: False" for XLSX 2020-08-12 14:34:09 -03:00
SET a915ac63f1 Removed dead code. 2020-08-12 13:32:30 -03:00
SET 45aaef29e6 Excluded from coverage the case where we don't have XSLX support. 2020-08-12 12:07:16 -03:00
SET 8887bcd00c Added 1 extra char to XSLX columns in bold. 2020-08-12 12:06:41 -03:00
SET e353158c29 Removed extra '.' in comment 2020-08-12 12:04:05 -03:00