Sorted the DNF/DNC values in the docs.
This commit is contained in:
parent
75ae78a479
commit
5a50477f7c
|
|
@ -270,8 +270,8 @@ Currently the only type available is `generic`.
|
|||
- `invert`: [boolean=false] Invert the result of the filter.
|
||||
- `keys`: [string|list(string)=dnf_list] [dnc_list,dnf_list] List of keys to match.
|
||||
The `dnf_list` and `dnc_list` internal lists can be specified as strings.
|
||||
Use `dnf_list` for {'do not load', 'do not fit', 'dnf', 'noload', 'dnl', 'not placed', 'no stuff', 'dnp', 'not loaded', 'noplace', 'not fitted', 'nofit', 'do not place', 'nostuff'}.
|
||||
Use `dnc_list` for {'dnc', 'do not change', 'no change', 'fixed'}.
|
||||
Use `dnf_list` for ['dnf', 'dnl', 'dnp', 'do not fit', 'do not load', 'do not place', 'no stuff', 'nofit', 'noload', 'noplace', 'nostuff', 'not fitted', 'not loaded', 'not placed'].
|
||||
Use `dnc_list` for ['dnc', 'do not change', 'fixed', 'no change'].
|
||||
- `name`: [string=''] Used to identify this particular filter definition.
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -72,8 +72,8 @@ class Generic(BaseFilter): # noqa: F821
|
|||
""" KiCad 5: exclude components marked as smd in the PCB """
|
||||
self.exclude_tht = False
|
||||
""" KiCad 5: exclude components marked as through-hole in the PCB """
|
||||
self.add_to_doc('keys', 'Use `dnf_list` for '+str(DNF))
|
||||
self.add_to_doc('keys', 'Use `dnc_list` for '+str(DNC))
|
||||
self.add_to_doc('keys', 'Use `dnf_list` for '+str(sorted(DNF)))
|
||||
self.add_to_doc('keys', 'Use `dnc_list` for '+str(sorted(DNC)))
|
||||
|
||||
@staticmethod
|
||||
def _fix_field(field):
|
||||
|
|
|
|||
Loading…
Reference in New Issue