Export SVG images of each tile

This commit is contained in:
jaseg 2024-05-29 13:44:31 +02:00
parent 23a3b2d12b
commit 1a84e96ff1

View file

@ -369,7 +369,8 @@ for index, ((y, x), spec) in tqdm.tqdm(enumerate(zip(itertools.product(range(row
if 'gen.outer_diameter' not in spec:
spec['gen.outer_diameter'] = coil_dia
args = ['python', '-m', 'twisted_coil_gen_twolayer', '--no-keepout-zone']
Path('svg').mkdir(exist_ok=True)
args = ['python', '-m', 'twisted_coil_gen_twolayer', '--no-keepout-zone', '--svg-out', f'svg/tile{index}.svg']
for k, v in spec.items():
prefix, _, k = k.partition('.')
if (not isinstance(v, bool) or v) and prefix == 'gen':