Spec to Field
This filter extracts information from the specs obtained from component distributors and fills fields.
I.e. create a field with the RoHS status of a component.
In order to make it work you must be able to get prices using the KiCost options of the bom output. Make sure you can do this before trying to use this filter.
Usage example.
comment : [string] (default:
'') A comment for documentation purposes.from_output : [string] (default:
'') Name of the output used to collect the specs. Currently this must be a bom output with KiCost enabled and a distributor that returns specs.name : [string] (default:
'') Used to identify this particular filter definition.specs : [SpecOptions parameters] [list(dict) | dict] (default:
[{'spec': '_voltage', 'field': '_field_voltage'}, {'spec': '_tolerance', 'field': '_field_tolerance'}, {'spec': '_power', 'field': '_field_power'}, {'spec': '_current', 'field': '_field_current'}]) One or more specs to be copied.
check_dist_coherence: [boolean] (default:true) Check that the data we got from different distributors is equivalent.
check_dist_fields: [string | list(string)] (default:['_value', '_tolerance', '_power', '_current', '_voltage', '_temp_coeff']) [comma separated] List of fields to include in the check. For a full list of fields consult the specs option.