Adapted the speed meassurement script

This commit is contained in:
Salvador E. Tropea 2020-10-16 19:26:07 -03:00
parent 087ef2bbb0
commit 17aafd88a0
4 changed files with 11 additions and 10 deletions

View File

@ -4,6 +4,7 @@ source =
src
omit = */kibot/docopt.py
*/kibot/mcpy/*
*/kibot/mcpyrate/*
[report]
exclude_lines =

View File

@ -1,2 +1,2 @@
#!/bin/sh
#!/bin/bash
time perl test.pl

View File

@ -1,4 +1,4 @@
for ($i=0; $i<100; $i++)
{
system("src/kiplot -b tests/board_samples/good-project.kicad_pcb -c tests/yaml_samples/simple_position_csv.kiplot.yaml -d pp");
system("../../src/kiplot -b ../../tests/board_samples/kicad_5/good-project.kicad_pcb -c ../../tests/yaml_samples/simple_position_csv.kibot.yaml -d pp");
}

View File

@ -37,14 +37,14 @@ class BoMColumns(Optionable):
def __init__(self):
super().__init__()
self._unkown_is_error = True
with step_expansion:
with document:
self.field = ''
""" Name of the field to use for this column """
self.name = ''
""" Name to display in the header. The field is used when empty """
self.join = Optionable
""" [list(string)|string=''] List of fields to join to this column """
# with step_expansion:
with document:
self.field = ''
""" Name of the field to use for this column """
self.name = ''
""" Name to display in the header. The field is used when empty """
self.join = Optionable
""" [list(string)|string=''] List of fields to join to this column """
def config(self):
super().config()