diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-07-23 22:53:17 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-07-23 22:53:17 +0200 |
commit | 894ff92c770320e264961bba55bbf0fba16efe56 (patch) | |
tree | 1cd723415aaaf5ad45a7aa32ac77b4e8e5645db9 /demo | |
parent | 3e5819caef56c449606e27ec80f9d563d519a907 (diff) | |
download | ee-python-894ff92c770320e264961bba55bbf0fba16efe56.tar.gz ee-python-894ff92c770320e264961bba55bbf0fba16efe56.tar.bz2 ee-python-894ff92c770320e264961bba55bbf0fba16efe56.tar.xz ee-python-894ff92c770320e264961bba55bbf0fba16efe56.zip |
wip.
o Support for loading CSV files.
Diffstat (limited to 'demo')
-rw-r--r-- | demo/doit/dodo.py | 14 | ||||
-rw-r--r-- | demo/doit/ee/kicad-footprint.csv | 2 |
2 files changed, 12 insertions, 4 deletions
diff --git a/demo/doit/dodo.py b/demo/doit/dodo.py index 27ceb67..858e673 100644 --- a/demo/doit/dodo.py +++ b/demo/doit/dodo.py @@ -1,4 +1,6 @@ import ee.kicad.doit +from ee.kicad.doit import * +from ee.fact import DataSetManager prj = "demo" sch = "{}.sch".format(prj) @@ -6,12 +8,16 @@ kicad_pcb = "{}.kicad_pcb".format(prj) DOIT_CONFIG = {'check_file_uptodate': 'timestamp'} +dsm = DataSetManager("ee") + +kicad_footprint = "kicad-footprint" +dsm.add_ds("csv", kicad_footprint, "kicad-footprint-mapping", path="ee/kicad-footprint.csv") + +ee.kicad.doit.change_data_sets_for_task(task_kicad_create_component_data_set, lambda ds: ds + [kicad_footprint]) + ee.kicad.doit.init( + data_set_manager=dsm, sch=sch, kicad_pcb=kicad_pcb, gerber_dir="gerber", - data_set_dir="ee", ) - -# noinspection PyUnresolvedReferences -from ee.kicad.doit import * diff --git a/demo/doit/ee/kicad-footprint.csv b/demo/doit/ee/kicad-footprint.csv new file mode 100644 index 0000000..a9ccfd7 --- /dev/null +++ b/demo/doit/ee/kicad-footprint.csv @@ -0,0 +1,2 @@ +kicad,common +Resistor_SMD:R_1206_3216Metric,SMD_3216 |