I hereby claim:
- I am spiccinini on github.
- I am spiccinini (https://keybase.io/spiccinini) on keybase.
- I have a public key ASBwHL6OGnnicHUlLArSWwfAZLSOW4qjTEYBBq1aXuzBawo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# | |
# Example python script to generate a BOM from a KiCad generic netlist | |
# | |
# Example: Sorted and Grouped CSV BOM | |
# | |
FIELDS = [ | |
('Cmp name', lambda c: c.getPartName()), | |
('Value', lambda c: c.getValue()), | |
('Manufacturer', None), |
import argparse | |
import os | |
import subprocess | |
import tempfile | |
def create(indir, outfile): | |
script = """set -x | |
tmpdir=$(mktemp -d) | |
# unpack |
#!/usr/bin/python | |
# GPLV2 based on https://github.com/bcopeland/speccy | |
import struct | |
import math | |
class SpectrumFileReader(object): | |
# spectral scan packet format constants |
# manual scanning all channels | |
function read_file(name) | |
local f = io.open(name,"r") | |
local ret = nil | |
if f ~= nil then | |
ret = f:read("*all") | |
f:close() | |
end | |
return ret |
import math | |
C_ms = 2.99792458e8 | |
def db2times(db): | |
return 10**(db/10.) | |
def times2db(times): | |
return 10 * math.log10(times) |
I usually go through the following steps sequentially, first unit testing, then scp/rsync then ipk or full image testing.
Read the Testing documentation. If the change is only in lua code and I feel confident that the tests cover the cases then I skip directly to Publish.