From 4dfe4314efc0a4137899f7a0fce7b653a34219ca Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 29 Jul 2018 12:02:46 +0200 Subject: o Starting on a digikey-specific order csv. o Better demo, one generic order csv and two for digikey with different batch sizes. --- demo/doit/dodo.py | 12 +++++++++--- demo/doit/ee/digikey-100.csv | 4 ++++ demo/doit/ee/digikey.csv | 4 ++++ demo/doit/ee/order-100.csv | 4 ---- 4 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 demo/doit/ee/digikey-100.csv create mode 100644 demo/doit/ee/digikey.csv delete mode 100644 demo/doit/ee/order-100.csv (limited to 'demo') diff --git a/demo/doit/dodo.py b/demo/doit/dodo.py index c5372fc..145c0a7 100644 --- a/demo/doit/dodo.py +++ b/demo/doit/dodo.py @@ -33,7 +33,13 @@ ee.bom.doit.init( def task_orders(): data_sets = [ee.bom.doit.output_data_set_for_task(task_bom)] + yield create_task_order_csv( + output_file="ee/order.csv", + data_sets=data_sets) + for size in [1, 100]: - yield create_task_order_csv("ee/order-{}.csv".format(size) if size != 1 else "ee/order.csv", - data_sets, - count=size) + yield create_task_order_csv( + output_file="ee/digikey-{}.csv".format(size) if size != 1 else "ee/digikey.csv", + style="digikey", + data_sets=data_sets, + count=size) diff --git a/demo/doit/ee/digikey-100.csv b/demo/doit/ee/digikey-100.csv new file mode 100644 index 0000000..bad6173 --- /dev/null +++ b/demo/doit/ee/digikey-100.csv @@ -0,0 +1,4 @@ +Digi-Key Part Number,Customer Reference,Quantity,MPN +,BT1,100,BC2AAPC +,"R2,R1",200,RMCF1206JT10K0 +,C1,100,UCA2G100MPD1TD diff --git a/demo/doit/ee/digikey.csv b/demo/doit/ee/digikey.csv new file mode 100644 index 0000000..a813638 --- /dev/null +++ b/demo/doit/ee/digikey.csv @@ -0,0 +1,4 @@ +Digi-Key Part Number,Customer Reference,Quantity,MPN +,BT1,1,BC2AAPC +,"R2,R1",2,RMCF1206JT10K0 +,C1,1,UCA2G100MPD1TD diff --git a/demo/doit/ee/order-100.csv b/demo/doit/ee/order-100.csv deleted file mode 100644 index 4f5b439..0000000 --- a/demo/doit/ee/order-100.csv +++ /dev/null @@ -1,4 +0,0 @@ -MPN,Count,References -BC2AAPC,100,BT1 -RMCF1206JT10K0,200,"R2,R1" -UCA2G100MPD1TD,100,C1 -- cgit v1.2.3