Best Python code snippet using locust
IngredientWriter.py
Source:IngredientWriter.py
1import csv2with open('ingredient.csv', mode='w') as recipes:3 #print('ingredient.csv generated')4 recipe_writer = csv.writer(recipes, delimiter = ',', quotechar='"', quoting=csv.QUOTE_MINIMAL)5 recipe_writer.writerow(['id', 'name', 'measurement'])6 recipe_writer.writerow(['1', 'Brown Onion', 'Count']) 7 recipe_writer.writerow(['2', 'Garlic Cloves', 'Count']) 8 recipe_writer.writerow(['3', 'Carrot', 'Count']) 9 recipe_writer.writerow(['4', 'Celery', 'Count']) 10 recipe_writer.writerow(['5', 'Red Capsicum', 'Count']) 11 recipe_writer.writerow(['6', 'Olive Oil', 'Count']) 12 recipe_writer.writerow(['7', 'Chilli Powder', 'Count']) 13 recipe_writer.writerow(['8', 'Ground Cumin', 'Count']) 14 recipe_writer.writerow(['9', 'Ground Cinnamon', 'Count']) 15 recipe_writer.writerow(['10', 'Tinned Chickpeas', 'Weight']) 16 recipe_writer.writerow(['11', 'Tinned Red Kidney Beans', 'Weight']) 17 recipe_writer.writerow(['12', 'Tinned Tomatoes', 'Weight']) 18 recipe_writer.writerow(['13', 'Beef Mince', 'Weight']) 19 recipe_writer.writerow(['14', 'Coriander', 'Count']) 20 recipe_writer.writerow(['15', 'Balsamic Vinegar', 'Count']) 21 recipe_writer.writerow(['16', 'Kent Pumpkin', 'Weight'])22 recipe_writer.writerow(['17', 'Shallots', 'Count'])23 recipe_writer.writerow(['18', 'Ginger', 'Count'])24 recipe_writer.writerow(['19', 'Chives', 'Count'])25 recipe_writer.writerow(['20', 'Mint Leaves', 'Count'])26 recipe_writer.writerow(['21', 'Vegetable Stock', 'Volume'])27 recipe_writer.writerow(['22', 'Coconut Milk', 'Volume'])28 recipe_writer.writerow(['23', 'Lime', 'Count'])29 recipe_writer.writerow(['24', 'Spaghetti', 'Weight'])30 recipe_writer.writerow(['25', 'Chicken Thigh Fillets', 'Weight'])31 recipe_writer.writerow(['26', 'Butter', 'Weight'])32 recipe_writer.writerow(['27', 'Zucchini Noodles', 'Weight'])33 recipe_writer.writerow(['28', 'Chilli Flakes', 'Count'])34 recipe_writer.writerow(['29', 'Parsley Leaves', 'Count'])35 recipe_writer.writerow(['30', 'Parmesan', 'Weight'])36 recipe_writer.writerow(['31', 'Tofu', 'Weight'])37 recipe_writer.writerow(['32', 'Rice Noodle', 'Weight'])38 recipe_writer.writerow(['33', 'Cornflour', 'Weight'])39 recipe_writer.writerow(['34', 'Peanut Oil', 'Count'])40 recipe_writer.writerow(['35', 'Chinese Broccoli', 'Count'])41 recipe_writer.writerow(['36', 'Soy Sauce', 'Count'])42 recipe_writer.writerow(['37', 'Brown Sugar', 'Count'])43 recipe_writer.writerow(['38', 'Egg', 'Count'])44 recipe_writer.writerow(['39', 'Steak', 'Weight'])45 recipe_writer.writerow(['40', 'Baby Corn', 'Count'])46 recipe_writer.writerow(['41', 'Broccolini', 'Count'])47 recipe_writer.writerow(['42', 'Oyster Sauce', 'Count'])48 recipe_writer.writerow(['43', 'Rice', 'Count'])49 recipe_writer.writerow(['44', 'Curry Paste', 'Count'])50 recipe_writer.writerow(['45', 'Baby Carrot', 'Count'])51 recipe_writer.writerow(['46', 'Lamb Mince', 'Weight'])52 recipe_writer.writerow(['47', 'Mixed Spice', 'Count'])53 recipe_writer.writerow(['48', 'Turkish Bread', 'Count'])54 recipe_writer.writerow(['49', 'Pizza Cheese', 'Weight']) 55 recipe_writer.writerow(['50', 'Cherry Tomatoes', 'Weight']) 56 recipe_writer.writerow(['51', 'Lemon', 'Count']) 57 recipe_writer.writerow(['52', 'Mixed Salad Leaves', 'Count']) 58 recipe_writer.writerow(['53', 'Mushrooms', 'Weight']) 59 recipe_writer.writerow(['54', 'Sesame Seeds', 'Weight']) 60 recipe_writer.writerow(['55', 'Lemon Juice', 'Volume']) 61 recipe_writer.writerow(['56', 'Miso Paste', 'Count']) 62 recipe_writer.writerow(['57', 'Bread Rolls', 'Count']) 63 recipe_writer.writerow(['58', 'Red Cabbage', 'Count']) 64 recipe_writer.writerow(['59', 'Sprouts', 'Weight']) 65 recipe_writer.writerow(['60', 'Basil', 'Count']) 66 recipe_writer.writerow(['61', 'Tomato Paste', 'Weight']) 67 recipe_writer.writerow(['62', 'Tomato Passata', 'Volume']) 68 recipe_writer.writerow(['63', 'Whole Chicken', 'Weight']) 69 recipe_writer.writerow(['64', 'Oregano', 'Count']) 70 recipe_writer.writerow(['65', 'Paprika', 'Count']) 71 recipe_writer.writerow(['66', 'Corn', 'Count']) 72 recipe_writer.writerow(['67', 'Spring Onion', 'Count']) 73 recipe_writer.writerow(['68', 'Baby Gem Lettuce', 'Count']) 74 recipe_writer.writerow(['69', 'Avocado', 'Count']) 75 recipe_writer.writerow(['70', 'Buttermilk', 'Volume'])76 recipe_writer.writerow(['71', 'Greek-style Yoghurt', 'Weight'])77 recipe_writer.writerow(['72', 'Breadcrumbs', 'Weight'])78 recipe_writer.writerow(['73', 'Lentils', 'Weight'])79 recipe_writer.writerow(['74', 'Chicken Stock', 'Volume'])80 recipe_writer.writerow(['75', 'Tomatoes', 'Count'])81 recipe_writer.writerow(['76', 'Ground Coriander', 'Count'])82 recipe_writer.writerow(['77', 'Cayenne Pepper', 'Count'])83 recipe_writer.writerow(['78', 'Salt', 'Count']) 84 recipe_writer.writerow(['79', 'Pepper', 'Count'])85 recipe_writer.writerow(['80', 'Soba Noodles', 'Weight'])86 recipe_writer.writerow(['81', 'Teriyaki Marinade', 'Volume']) 87 recipe_writer.writerow(['82', 'Lime Juice', 'Volume']) 88 recipe_writer.writerow(['83', 'Sesame Oil', 'Count']) 89 recipe_writer.writerow(['84', 'Salmon', 'Count']) 90 recipe_writer.writerow(['85', 'Radishes', 'Count']) 91 recipe_writer.writerow(['86', 'Baby Cucumbers', 'Count']) 92 recipe_writer.writerow(['87', 'Tomato Sauce', 'Volume']) 93 recipe_writer.writerow(['88', 'Rice Wine Vinegar', 'Count']) 94 recipe_writer.writerow(['89', 'Honey', 'Count'])95 recipe_writer.writerow(['90', 'Gochujang paste', 'Count'])96 recipe_writer.writerow(['91', 'Garlic Chives', 'Count']) 97 recipe_writer.writerow(['92', 'Rice Flour', 'Weight'])98 recipe_writer.writerow(['93', 'Vegetable oil', 'Count'])99 recipe_writer.writerow(['94', 'Snow Peas', 'Weight'])100 recipe_writer.writerow(['95', 'Kale', 'Weight'])101 recipe_writer.writerow(['96', 'Spinach Mix', 'Weight'])102 recipe_writer.writerow(['97', 'Ground Turmeric', 'Count'])103 recipe_writer.writerow(['98', 'Red Onion', 'Count'])104 recipe_writer.writerow(['99', 'Dill', 'Count'])105 recipe_writer.writerow(['100', 'Tabasco Sauce', 'Count'])106 recipe_writer.writerow(['101', 'Red Wine Vinegar', 'Count'])107 recipe_writer.writerow(['102', 'Baby Spinach', 'Weight'])108 recipe_writer.writerow(['103', 'Zucchini', 'Count'])109 recipe_writer.writerow(['104', 'Roma Tomatoes', 'Weight'])110 recipe_writer.writerow(['105', 'Pasta', 'Weight'])111 recipe_writer.writerow(['106', 'Pine Nuts', 'Weight'])112 recipe_writer.writerow(['107', 'Baby Rocket Leaves', 'Count'])113 recipe_writer.writerow(['108', 'Mixed Vegetables', 'Weight'])114 recipe_writer.writerow(['109', 'Beef Stock', 'Volume'])115 recipe_writer.writerow(['110', 'Sweet Potato', 'Weight']) 116 recipe_writer.writerow(['111', 'Goat Cheese', 'Weight'])117 recipe_writer.writerow(['112', 'Chicken Breast', 'Weight'])118 recipe_writer.writerow(['113', 'Chinese Cabbage', 'Count'])119 recipe_writer.writerow(['114', 'Apple', 'Count'])120 recipe_writer.writerow(['115', 'Nori', 'Count'])121 recipe_writer.writerow(['116', 'Mirin', 'Volume'])122 recipe_writer.writerow(['117', 'Sushi Seasoning', 'Count'])123 recipe_writer.writerow(['118', 'Plain Flour', 'Weight'])124 recipe_writer.writerow(['119', 'Milk', 'Volume'])125 recipe_writer.writerow(['120', 'Self-raising Flour', 'Weight']) 126 recipe_writer.writerow(['121', 'Butternut Pumpkin', 'Weight'])127 recipe_writer.writerow(['122', 'Water', 'Volume'])128 recipe_writer.writerow(['123', 'Pork Mince', 'Weight'])129# recipe_writer.writerow(['125', ''])130# recipe_writer.writerow(['126', ''])131# recipe_writer.writerow(['127', ''])132# recipe_writer.writerow(['128', ''])133# recipe_writer.writerow(['129', ''])134# recipe_writer.writerow(['130', '']) 135# recipe_writer.writerow(['131', ''])136# recipe_writer.writerow(['132', ''])137# recipe_writer.writerow(['133', ''])138# recipe_writer.writerow(['134', ''])139# recipe_writer.writerow(['135', ''])140# recipe_writer.writerow(['136', ''])141# recipe_writer.writerow(['137', ''])142# recipe_writer.writerow(['138', ''])143# recipe_writer.writerow(['139', ''])144# recipe_writer.writerow(['140', '']) 145# recipe_writer.writerow(['141', ''])146# recipe_writer.writerow(['142', ''])147# recipe_writer.writerow(['143', ''])148# recipe_writer.writerow(['144', ''])149# recipe_writer.writerow(['145', ''])150# recipe_writer.writerow(['146', ''])151# recipe_writer.writerow(['147', ''])152# recipe_writer.writerow(['148', ''])153# recipe_writer.writerow(['149', ''])154# recipe_writer.writerow(['150', '']) 155# recipe_writer.writerow(['151', '']) 156# recipe_writer.writerow(['152', '']) 157# recipe_writer.writerow(['153', '']) 158# recipe_writer.writerow(['154', '']) 159# recipe_writer.writerow(['155', '']) 160# recipe_writer.writerow(['156', '']) 161# recipe_writer.writerow(['157', '']) 162# recipe_writer.writerow(['158', '']) 163# recipe_writer.writerow(['159', '']) 164# recipe_writer.writerow(['160', '']) 165# recipe_writer.writerow(['161', '']) 166# recipe_writer.writerow(['162', '']) 167# recipe_writer.writerow(['163', '']) 168# recipe_writer.writerow(['164', '']) 169# recipe_writer.writerow(['165', '']) 170# recipe_writer.writerow(['166', '']) 171# recipe_writer.writerow(['167', '']) 172# recipe_writer.writerow(['168', '']) 173# recipe_writer.writerow(['169', '']) 174# recipe_writer.writerow(['170', ''])175# recipe_writer.writerow(['171', ''])176# recipe_writer.writerow(['172', ''])177# recipe_writer.writerow(['173', ''])178# recipe_writer.writerow(['174', ''])179# recipe_writer.writerow(['175', ''])180# recipe_writer.writerow(['176', ''])181# recipe_writer.writerow(['177', ''])182# recipe_writer.writerow(['178', '']) 183# recipe_writer.writerow(['179', ''])184# recipe_writer.writerow(['180', ''])185# recipe_writer.writerow(['181', '']) 186# recipe_writer.writerow(['182', '']) 187# recipe_writer.writerow(['183', '']) 188# recipe_writer.writerow(['184', '']) 189# recipe_writer.writerow(['185', '']) 190# recipe_writer.writerow(['186', '']) 191# recipe_writer.writerow(['187', '']) 192# recipe_writer.writerow(['188', '']) 193# recipe_writer.writerow(['189', ''])194# recipe_writer.writerow(['190', ''])195# recipe_writer.writerow(['191', '']) 196# recipe_writer.writerow(['192', ''])197# recipe_writer.writerow(['193', ''])198# recipe_writer.writerow(['194', ''])199# recipe_writer.writerow(['195', ''])200# recipe_writer.writerow(['196', ''])201# recipe_writer.writerow(['197', ''])202# recipe_writer.writerow(['198', ''])203# recipe_writer.writerow(['199', ''])204# recipe_writer.writerow(['100', ''])205# recipe_writer.writerow(['101', ''])206# recipe_writer.writerow(['102', ''])207# recipe_writer.writerow(['103', ''])208# recipe_writer.writerow(['104', ''])209# recipe_writer.writerow(['105', ''])210# recipe_writer.writerow(['106', ''])211# recipe_writer.writerow(['107', ''])212# recipe_writer.writerow(['108', ''])213# recipe_writer.writerow(['109', ''])214# recipe_writer.writerow(['110', '']) 215# recipe_writer.writerow(['111', ''])216# recipe_writer.writerow(['112', ''])217# recipe_writer.writerow(['113', ''])218# recipe_writer.writerow(['114', ''])219# recipe_writer.writerow(['115', ''])220# recipe_writer.writerow(['116', ''])221# recipe_writer.writerow(['117', ''])222# recipe_writer.writerow(['118', ''])223# recipe_writer.writerow(['119', ''])224# recipe_writer.writerow(['120', '']) 225# recipe_writer.writerow(['121', ''])226# recipe_writer.writerow(['122', ''])227# recipe_writer.writerow(['123', ''])228# recipe_writer.writerow(['124', ''])229# recipe_writer.writerow(['125', ''])230# recipe_writer.writerow(['126', ''])231# recipe_writer.writerow(['127', ''])232# recipe_writer.writerow(['128', ''])233# recipe_writer.writerow(['129', ''])234# recipe_writer.writerow(['130', '']) 235# recipe_writer.writerow(['131', ''])236# recipe_writer.writerow(['132', ''])237# recipe_writer.writerow(['133', ''])238# recipe_writer.writerow(['134', ''])239# recipe_writer.writerow(['135', ''])240# recipe_writer.writerow(['136', ''])241# recipe_writer.writerow(['137', ''])242# recipe_writer.writerow(['138', ''])243# recipe_writer.writerow(['139', ''])244# recipe_writer.writerow(['140', '']) 245# recipe_writer.writerow(['141', ''])246# recipe_writer.writerow(['142', ''])247# recipe_writer.writerow(['143', ''])248# recipe_writer.writerow(['144', ''])249# recipe_writer.writerow(['145', ''])250# recipe_writer.writerow(['146', ''])251# recipe_writer.writerow(['147', ''])252# recipe_writer.writerow(['148', ''])253# recipe_writer.writerow(['149', ''])254# recipe_writer.writerow(['150', '']) 255# recipe_writer.writerow(['151', '']) 256# recipe_writer.writerow(['152', '']) 257# recipe_writer.writerow(['153', '']) 258# recipe_writer.writerow(['154', '']) 259# recipe_writer.writerow(['155', '']) 260# recipe_writer.writerow(['156', '']) 261# recipe_writer.writerow(['157', '']) 262# recipe_writer.writerow(['158', '']) 263# recipe_writer.writerow(['159', '']) 264# recipe_writer.writerow(['160', '']) 265# recipe_writer.writerow(['161', '']) 266# recipe_writer.writerow(['162', '']) 267# recipe_writer.writerow(['163', '']) 268# recipe_writer.writerow(['164', '']) 269# recipe_writer.writerow(['165', '']) 270# recipe_writer.writerow(['166', '']) 271# recipe_writer.writerow(['167', '']) 272# recipe_writer.writerow(['168', '']) 273# recipe_writer.writerow(['169', '']) 274# recipe_writer.writerow(['170', ''])275# recipe_writer.writerow(['171', ''])276# recipe_writer.writerow(['172', ''])277# recipe_writer.writerow(['173', ''])278# recipe_writer.writerow(['174', ''])279# recipe_writer.writerow(['175', ''])280# recipe_writer.writerow(['176', ''])281# recipe_writer.writerow(['177', ''])282# recipe_writer.writerow(['178', '']) 283# recipe_writer.writerow(['179', ''])284# recipe_writer.writerow(['180', ''])285# recipe_writer.writerow(['181', '']) 286# recipe_writer.writerow(['182', '']) 287# recipe_writer.writerow(['183', '']) 288# recipe_writer.writerow(['184', '']) 289# recipe_writer.writerow(['185', '']) 290# recipe_writer.writerow(['186', '']) 291# recipe_writer.writerow(['187', '']) 292# recipe_writer.writerow(['188', '']) 293# recipe_writer.writerow(['189', ''])294# recipe_writer.writerow(['190', ''])295# recipe_writer.writerow(['191', '']) 296# recipe_writer.writerow(['192', ''])297# recipe_writer.writerow(['193', ''])298# recipe_writer.writerow(['194', ''])299# recipe_writer.writerow(['195', ''])300# recipe_writer.writerow(['196', ''])301# recipe_writer.writerow(['197', ''])302# recipe_writer.writerow(['198', ''])...
csv_write_temp.py
Source:csv_write_temp.py
...5 writer = csv.DictWriter(csvfile, fieldnames=fieldnames)6 7 writer.writeheader()8## Nominal9 writer.writerow({'Name of Parameter': 'Nominal Power', 'Unit': 'Pn', 'Dimension': '[W]', 'Value': P_2n})10 writer.writerow({'Name of Parameter': 'Nominal Voltage', 'Unit': 'Un', 'Dimension': '[V]', 'Value': Un})11 writer.writerow({'Name of Parameter': 'Winding Connection', 'Unit': '-' , 'Dimension': '[-]', 'Value': Scheme_Stator})12 writer.writerow({'Name of Parameter': 'Frequency', 'Unit': 'f', 'Dimension': '[Hz]', 'Value': f})13 writer.writerow({'Name of Parameter': 'Efficiency', 'Unit': 'eta', 'Dimension': '[-]', 'Value': eta_n})14 writer.writerow({'Name of Parameter': 'Power Factor', 'Unit': 'cos_phi', 'Dimension': '[-]', 'Value': cos_phi_n})15 writer.writerow({'Name of Parameter': 'Number of poles', 'Unit': 'p', 'Dimension': '[-]', 'Value': p})16## Coils17 writer.writerow({'Name of Parameter': 'Number of Coils', 'Unit': 'W1', 'Dimension': '[-]', 'Value': W1}) 18 writer.writerow({'Name of Parameter': 'Number of Conductors', 'Unit': 'N_k1', 'Dimension': '[-]', 'Value': int(N_k1)})19## Air Gap20 writer.writerow({'Name of Parameter': 'Air Gap Width', 'Unit': 'delta', 'Dimension': '[mm]', 'Value': delta})21 writer.writerow({'Name of Parameter': 'Air Gap Flux', 'Unit': 'Phi_delta', 'Dimension': '[Wb]', 'Value': Phi_delta})22## Length23 writer.writerow({'Name of Parameter': 'Air Gap Length', 'Unit': 'l_delta', 'Dimension': '[mm]', 'Value': l_delta})24 writer.writerow({'Name of Parameter': 'Core Lamination Fill', 'Unit': 'k_Fe', 'Dimension': '[-]', 'Value': k_Fe})25## Line Load26 writer.writerow({'Name of Parameter': 'Line Load', 'Unit': 'A', 'Dimension': '[A/cm]', 'Value': A})27## Coil Winding28 writer.writerow({'Name of Parameter': 'Pitch Factor', 'Unit': 'ky', 'Dimension': '[-]', 'Value': ky}) 29 writer.writerow({'Name of Parameter': 'Winding Factor', 'Unit': 'k_w1', 'Dimension': '[-]', 'Value': k_w1})30 writer.writerow({'Name of Parameter': 'Coil Pitch', 'Unit': 'y/tau_p', 'Dimension': '[-]', 'Value': CoilPitch})31## Currents32 writer.writerow({'Name of Parameter': 'Rotor Current', 'Unit': 'I2', 'Dimension': '[A]', 'Value': I2})33 writer.writerow({'Name of Parameter': 'End Ring Current', 'Unit': 'Ip', 'Dimension': '[A]', 'Value': Ip})34 writer.writerow({'Name of Parameter': 'Magnetizing Current', 'Unit': 'I0_mif', 'Dimension': '[A]', 'Value': I0_mif})35 writer.writerow({'Name of Parameter': 'No Load Current', 'Unit': 'I00', 'Dimension': '[A]', 'Value': I00})36## 37## Slot Dimensions Stator38 writer.writerow({'Name of Parameter': 'Teeth Width', 'Unit': 'b_z1', 'Dimension': '[mm]', 'Value': b_z1})39 writer.writerow({'Name of Parameter': 'Slot Opening', 'Unit': 'a1', 'Dimension': '[mm]', 'Value': a1}) 40 writer.writerow({'Name of Parameter': 'Slot Wedge Heigth', 'Unit': 'h5', 'Dimension': '[mm]', 'Value': h5})41 writer.writerow({'Name of Parameter': 'Teeth Heigth', 'Unit': 'h_z1', 'Dimension': '[mm]', 'Value': h_z1}) 42 writer.writerow({'Name of Parameter': 'Slot Heigth', 'Unit': 'h1', 'Dimension': '[mm]', 'Value': h1}) 43# Trapezoidal44 if StatorSlot == 'Trapezoidal':45 writer.writerow({'Name of Parameter': 'Slot Opening Heigth', 'Unit': 'h6', 'Dimension': '[mm]', 'Value': h6})46 writer.writerow({'Name of Parameter': 'Slot Wedge Width', 'Unit': 'b_k11', 'Dimension': '[mm]', 'Value': b_k11})47 writer.writerow({'Name of Parameter': 'Slot Width', 'Unit': 'b_k21', 'Dimension': '[mm]', 'Value': b_k21})48## Slot Dimensions Rotor49 writer.writerow({'Name of Parameter': 'Rotor Opeingn', 'Unit': 'a2', 'Dimension': '[mm]', 'Value': a2}) 50 writer.writerow({'Name of Parameter': 'Slot Heigth', 'Unit': 'h_12', 'Dimension': '[mm]', 'Value': h_12})51 writer.writerow({'Name of Parameter': 'Slot Wedge Heigth', 'Unit': 'h_42', 'Dimension': '[mm]', 'Value': h_42})52 writer.writerow({'Name of Parameter': 'Slot Width', 'Unit': 'b_k2', 'Dimension': '[mm]', 'Value': b_k2})53 writer.writerow({'Name of Parameter': 'Teeth Heigth', 'Unit': 'h_z2', 'Dimension': '[mm]', 'Value': h_z2})54# Circular55 if RotorSlot != 'Circular':56 writer.writerow({'Name of Parameter': 'Maximum Teeth Width', 'Unit': 'b_z2_max', 'Dimension': '[mm]', 'Value': b_z2_max})57 writer.writerow({'Name of Parameter': 'Minumum Teeth Width', 'Unit': 'b_z2_min', 'Dimension': '[mm]', 'Value': b_z2_min})58 writer.writerow({'Name of Parameter': 'Average Teeth Width', 'Unit': 'b_z2_avg', 'Dimension': '[mm]', 'Value': b_z2_avg})59## Prsten60 writer.writerow({'Name of Parameter': 'End Ring Heigth', 'Unit': 'hp', 'Dimension': '[mm]', 'Value': hp})61 writer.writerow({'Name of Parameter': 'End Ring Width', 'Unit': 'bp', 'Dimension': '[mm]', 'Value': bp}) 62 writer.writerow({'Name of Parameter': 'End Ring Area', 'Unit': 'Sp', 'Dimension': '[mm]', 'Value': Sp})63## Venec 64 writer.writerow({'Name of Parameter': 'Stator Yolk Heigth', 'Unit': 'h_v1', 'Dimension': '[mm]', 'Value': h_v1})65 writer.writerow({'Name of Parameter': 'Rotor Yolk Heigth', 'Unit': 'h_v2', 'Dimension': '[mm]', 'Value': h_v2})66## Dimenzii na provodnik Stator67 writer.writerow({'Name of Parameter': 'Wire Diameter', 'Unit': 'd', 'Dimension': '[mm2]', 'Value': d}) 68 writer.writerow({'Name of Parameter': 'Wire Area', 'Unit': 'S_Cu1', 'Dimension': '[mm2]', 'Value': S_Cu1}) 69 #writer.writerow({'Name of Parameter': 'S1', 'Value': S1})70 writer.writerow({'Name of Parameter': 'Slot Area', 'Unit': 'Sk', 'Dimension': '[mm2]', 'Value': Sk})71 writer.writerow({'Name of Parameter': 'Coil Area', 'Unit': 'S_Cuk', 'Dimension': '[mm2]', 'Value': S_Cuk}) 72 writer.writerow({'Name of Parameter': 'Number of Paralel Conductors', 'Unit': 'n_k1', 'Dimension': '[-]', 'Value': number_of_conductors})73 writer.writerow({'Name of Parameter': 'Coil Fill Factor', 'Unit': 'k_Cu', 'Dimension': '[-]', 'Value': k_Cu})74## Dimenzii na provodnik Rotor75 writer.writerow({'Name of Parameter': 'Coil Area', 'Unit': 'S_Cu2', 'Dimension': '[mm2]', 'Value': S_Cu2})76 writer.writerow({'Name of Parameter': 'Slot Area', 'Unit': 'Sk', 'Dimension': '[mm2]', 'Value': Sk}) 77## Gustina na struja78 writer.writerow({'Name of Parameter': 'Stator Current Density', 'Unit': 'g1', 'Dimension': '[A/mm2]', 'Value': g1})79 writer.writerow({'Name of Parameter': 'Rotor Current Density', 'Unit': 'g2', 'Dimension': '[A/mm2]', 'Value': g2})80 writer.writerow({'Name of Parameter': 'End Ring Current Density', 'Unit': 'gp', 'Dimension': '[A/mm2]', 'Value': gp})81## Broj na kanali82 writer.writerow({'Name of Parameter': 'Number of Slots per Pole per Phase', 'Unit': 'q', 'Dimension': '[-]', 'Value': Z_stator / (2*p*m1)}) 83 writer.writerow({'Name of Parameter': 'Stator Slot Number', 'Unit': 'Z_stator', 'Dimension': '[-]', 'Value': Z_stator}) 84 writer.writerow({'Name of Parameter': 'Rotor Slot Number', 'Unit': 'Z_rotor', 'Dimension': '[-]', 'Value': Z_rotor}) 85## Dijametar86 writer.writerow({'Name of Parameter': 'Motor Diameter', 'Unit': 'D', 'Dimension': '[cm]', 'Value': D})87 writer.writerow({'Name of Parameter': 'Stator Diameter', 'Unit': 'D_11', 'Dimension': '[mm]', 'Value': D_11})88 writer.writerow({'Name of Parameter': 'Rotor Diameter', 'Unit': 'D22', 'Dimension': '[mm]', 'Value': D_22})89 writer.writerow({'Name of Parameter': 'End Ring Diameter', 'Unit': 'Dp', 'Dimension': '[mm]', 'Value': Dp})90 writer.writerow({'Name of Parameter': 'Slot Pitch', 'Unit': 'tau_p', 'Dimension': '[mm]', 'Value': tau_p})91## Pole Pitch92 writer.writerow({'Name of Parameter': 'Stator Pole Pitch', 'Unit': 't1', 'Dimension': '[mm]', 'Value': t1})93 writer.writerow({'Name of Parameter': 'Rotor Slot Pitch', 'Unit': 't2', 'Dimension': '[mm]', 'Value': t2})94## Magnetic Fluxes95 writer.writerow({'Name of Parameter': 'Stator Teeth Magnetic Flux', 'Unit': 'B_z1', 'Dimension': '[T]', 'Value': B_z1})96 #writer.writerow({'Name of Parameter': 'Rotor Teeth Magnetic Flux', 'Unit': 'B_z2', 'Value': B_z2})97 writer.writerow({'Name of Parameter': 'Stator Yolk Magnetic Flux', 'Unit': 'B_v1', 'Dimension': '[T]', 'Value': B_v1})98 writer.writerow({'Name of Parameter': 'Rotor Yolk Magnetic Flux', 'Unit': 'B_v2', 'Dimension': '[T]', 'Value': B_v2})99 writer.writerow({'Name of Parameter': 'Air Gap Magnetic Flux', 'Unit': 'B_delta', 'Dimension': '[T]', 'Value': B_delta})100## Magnetomotive Force 101 102 writer.writerow({'Name of Parameter': ' Stator Yolk MMF', 'Unit': 'F_v1', 'Dimension': '[Anav]', 'Value': F_v1})103 writer.writerow({'Name of Parameter': ' Rotor Yolk MMF', 'Unit': 'F_v2', 'Dimension': '[Anav]', 'Value': F_v2})104 writer.writerow({'Name of Parameter': ' Stator Teeth MMF', 'Unit': 'F_z1', 'Dimension': '[Anav]', 'Value': F_z1})105 writer.writerow({'Name of Parameter': ' Rotor Teeth MMF', 'Unit': 'F_z2', 'Dimension': '[Anav]', 'Value': F_z2})106 writer.writerow({'Name of Parameter': ' Air Gap MMF', 'Unit': 'F_delta', 'Dimension': '[Anav]', 'Value': F_delta})107 writer.writerow({'Name of Parameter': ' Motor MMF', 'Unit': 'Fv', 'Dimension': '[Anav]', 'Value': Fv})108## Resistance 109 writer.writerow({'Name of Parameter': 'Stator Resistance 15 Degrees Temp', 'Unit': 'r1_15', 'Dimension': '[\u03A9]', 'Value': r1_15})110 writer.writerow({'Name of Parameter': 'Stator Resistance 75 Degrees Temp', 'Unit': 'r1_75', 'Dimension': '[\u03A9]', 'Value': r1_75})111 writer.writerow({'Name of Parameter': 'Rotor Resistance 15 Degrees Temp', 'Unit': 'r2_15', 'Dimension': '[\u03A9]', 'Value': r2_15})112 writer.writerow({'Name of Parameter': 'Rotor Resistance 75 Degrees Temp', 'Unit': 'r2_75', 'Dimension': '[\u03A9]', 'Value': r2_75})113 writer.writerow({'Name of Parameter': 'Rotor Resistance Refered to Stator', 'Unit': 'r2_75_prime', 'Dimension': '[\u03A9]', 'Value': r2_svedeno})114 writer.writerow({'Name of Parameter': 'Core Resistance', 'Unit': 'rm', 'Dimension': '[\u03A9]', 'Value': rm})115 writer.writerow({'Name of Parameter': 'Transformation Factor', 'Unit': 'k', 'Dimension': '[-]', 'Value': k})116 writer.writerow({'Name of Parameter': 'Stator Resistance', 'Unit': 'R1', 'Dimension': '[\u03A9]', 'Value': R1})117 writer.writerow({'Name of Parameter': 'Rotor Resistance', 'Unit': 'R2', 'Dimension': '[\u03A9]', 'Value': R2})118## Reactance119 # Flux Leakage Factor120 writer.writerow({'Name of Parameter': 'Statot Slot Leakage Flux Factor', 'Unit': 'lambda_k1', 'Dimension': '[-]', 'Value': lambda_k1})121 writer.writerow({'Name of Parameter': 'Statot End-Connection Leakage Flux Factor', 'Unit': 'lambda_cv1', 'Dimension': '[-]', 'Value': lambda_cv1})122 writer.writerow({'Name of Parameter': 'Statot Diferential Leakage Flux Factor', 'Unit': 'lambda_d1', 'Dimension': '[-]', 'Value': lambda_d1})123 writer.writerow({'Name of Parameter': 'Rotor Slot Leakage Flux Factor', 'Unit': 'lambda_k2', 'Dimension': '[-]', 'Value': lambda_k2})124 writer.writerow({'Name of Parameter': 'Rotor End-Connection Leakage Flux Factor', 'Unit': 'lambda_k2', 'Dimension': '[-]', 'Value': lambda_k2})125 writer.writerow({'Name of Parameter': 'Rotor Diferential Leakage Flux Factor', 'Unit': 'lambda_cv2', 'Dimension': '[-]', 'Value': lambda_cv2})126 writer.writerow({'Name of Parameter': 'Stator Reactance', 'Unit': 'x1', 'Dimension': '[\u03A9]', 'Value': x_sigma1})127 writer.writerow({'Name of Parameter': 'Rotor Reactance', 'Unit': 'x2', 'Dimension': '[\u03A9]', 'Value': x_sigma2})128 writer.writerow({'Name of Parameter': 'Rotor Reactance Refered to Stator', 'Unit': 'x2_prime', 'Dimension': '[\u03A9]', 'Value': x_sigma2_svedeno})129 writer.writerow({'Name of Parameter': 'Core Reactance', 'Unit': 'xm', 'Dimension': '[\u03A9]', 'Value': xm})130 writer.writerow({'Name of Parameter': 'Stator Reactance', 'Unit': 'X1', 'Dimension': '[\u03A9]', 'Value': X1})131 writer.writerow({'Name of Parameter': 'Rotor Reactance', 'Unit': 'X2', 'Dimension': '[\u03A9]', 'Value': X2})132 writer.writerow({'Name of Parameter': 'Motor Reactance', 'Unit': 'Xk', 'Dimension': '[\u03A9]', 'Value': Xk}) 133 writer.writerow({'Name of Parameter': 'Nesto', 'Unit': 'sigma_1', 'Dimension': '[-]', 'Value': sigma_1})134## Losses135 writer.writerow({'Name of Parameter': 'No Load Stator Coil Losses', 'Unit': 'P_Cu10', 'Dimension': '[W]', 'Value': P_Cu10})136 writer.writerow({'Name of Parameter': 'Stator Coil Loosses', 'Unit': 'P_Cu_1n', 'Dimension': '[W]', 'Value': P_Cu_1n})137 writer.writerow({'Name of Parameter': 'Rotor Coil Looses', 'Unit': 'P_Cu_2n', 'Dimension': '[W]', 'Value': P_Cu_2n})138 #writer.writerow({'Name of Parameter': 'Stator Yolk Loosses', 'p_Fe_v1', 'Value': p_Fe_v1})139 writer.writerow({'Name of Parameter': 'Stator Yolk Mass', 'Unit': 'm_Fe_v1', 'Dimension': '[W]', 'Value': m_Fe_v1})140 writer.writerow({'Name of Parameter': 'Stator Yolk Loosses', 'Unit': 'P_Fe_v1', 'Dimension': '[W]', 'Value': P_Fe_v1})141 #writer.writerow({'Name of Parameter': 'p_Fe_z1', 'Value': p_Fe_z1})142 writer.writerow({'Name of Parameter': 'Stator Teeth Mass', 'Unit': 'm_Fe_z1', 'Dimension': '[W]', 'Value': m_Fe_z1})143 writer.writerow({'Name of Parameter': 'Stator Teeth Loosses', 'Unit': 'P_Fe_z1', 'Dimension': '[W]', 'Value': P_Fe_z1})144 writer.writerow({'Name of Parameter': 'Core Loosses', 'Unit': 'P_Fe', 'Dimension': '[W]', 'Value': P_Fe})145 writer.writerow({'Name of Parameter': 'No Load Loosses', 'Unit': 'P0', 'Dimension': '[W]', 'Value': P0})146## Aditional Parameters147 writer.writerow({'Name of Parameter': 'Stator Slot Type', 'Unit': '-', 'Dimension': '[-]', 'Value': StatorSlot})148 writer.writerow({'Name of Parameter': 'Rotor Slot Type', 'Unit': '-', 'Dimension': '[-]', 'Value': RotorSlot})149 #writer.writerow({'Name of Parameter': 'Core Material', 'Unit': '-', 'Dimension': '[-]', 'Value': })...
csv_write.py
Source:csv_write.py
...3with open(f'{Folder_Path}/Parameters.csv', 'w', newline='') as csvfile:4 fieldnames = ['Name of Parameter', 'Value']5 writer = csv.DictWriter(csvfile, fieldnames=fieldnames)6 writer.writeheader()7 writer.writerow({'Name of Parameter': 'Pn', 'Value': P_2n})8 writer.writerow({'Name of Parameter': 'Un', 'Value': Un})9 writer.writerow({'Name of Parameter': 'Winding Connection', 'Value': Scheme_Stator})10 writer.writerow({'Name of Parameter': 'f', 'Value': f})11 writer.writerow({'Name of Parameter': 'eta', 'Value': eta_n})12 writer.writerow({'Name of Parameter': 'cos_phi', 'Value': cos_phi_n})13 writer.writerow({'Name of Parameter': 'p', 'Value': p})14 15 writer.writerow({'Name of Parameter': '', 'Value': ''})16 17 writer.writerow({'Name of Parameter': 'Sn', 'Value': Sn})18 writer.writerow({'Name of Parameter': 'I_1n', 'Value': I_1n})19 writer.writerow({'Name of Parameter': 'P_em', 'Value': P_em})20 writer.writerow({'Name of Parameter': 'ke', 'Value': ke})21 writer.writerow({'Name of Parameter': 'n1', 'Value': n1})22 writer.writerow({'Name of Parameter': 'D', 'Value': D})23 writer.writerow({'Name of Parameter': 'tau_p', 'Value': tau_p})24 writer.writerow({'Name of Parameter': 'B_delta', 'Value': B_delta})25 writer.writerow({'Name of Parameter': 'A', 'Value': A})26 writer.writerow({'Name of Parameter': 'q', 'Value': Z_stator / (2*p*m1)}) 27 writer.writerow({'Name of Parameter': 'Z_stator', 'Value': Z_stator})28 writer.writerow({'Name of Parameter': 'Xi1', 'Value': Xi})29 writer.writerow({'Name of Parameter': 'y/tau_p', 'Value': CoilPitch})30 #writer.writerow({'Name of Parameter': 'kp', 'Value': 5})31 writer.writerow({'Name of Parameter': 'ky', 'Value': ky}) 32 writer.writerow({'Name of Parameter': 'k_w1', 'Value': k_w1})33 writer.writerow({'Name of Parameter': 'l_delta', 'Value': l_delta})34 writer.writerow({'Name of Parameter': 'delta', 'Value': delta})35 writer.writerow({'Name of Parameter': 'Phi_delta', 'Value': Phi_delta})36 writer.writerow({'Name of Parameter': 'W1', 'Value': W1}) 37 writer.writerow({'Name of Parameter': 'N_k1', 'Value': N_k1})38 writer.writerow({'Name of Parameter': 'g1', 'Value': g1})39 """40 writer.writerow({'Name of Parameter': 'n1', 'Value': n1})41 writer.writerow({'Name of Parameter': 'a1', 'Value': a1})42 """43 writer.writerow({'Name of Parameter': 'S_Cu1', 'Value': S_Cu1}) 44 writer.writerow({'Name of Parameter': 'd', 'Value': d}) 45 writer.writerow({'Name of Parameter': 'S1', 'Value': S1})46 writer.writerow({'Name of Parameter': 'k_Cu', 'Value': k_Cu})47 writer.writerow({'Name of Parameter': 'Sk', 'Value': Sk})48 writer.writerow({'Name of Parameter': 'n_k1', 'Value': n_k1})49 writer.writerow({'Name of Parameter': 'S_Cuk', 'Value': S_Cuk}) 50 writer.writerow({'Name of Parameter': 't1', 'Value': t1})51 writer.writerow({'Name of Parameter': 'k_Fe', 'Value': k_Fe})52 writer.writerow({'Name of Parameter': 'B_z1', 'Value': B_z1})53 writer.writerow({'Name of Parameter': 'b_z1', 'Value': b_z1})54 writer.writerow({'Name of Parameter': 'a1', 'Value': a1}) 55 writer.writerow({'Name of Parameter': 'h5', 'Value': h5})56 if StatorSlot == 'Trapezoidal':57 writer.writerow({'Name of Parameter': 'h6', 'Value': h6})58 writer.writerow({'Name of Parameter': 'b_k11', 'Value': b_k11})59 writer.writerow({'Name of Parameter': 'b_k21', 'Value': b_k21})60 writer.writerow({'Name of Parameter': 'h_z1', 'Value': h_z1}) 61 writer.writerow({'Name of Parameter': 'h1', 'Value': h1}) 62 writer.writerow({'Name of Parameter': 'D_k1', 'Value': D_k1})63 writer.writerow({'Name of Parameter': 'B_v1', 'Value': B_v1})64 writer.writerow({'Name of Parameter': 'h_v1', 'Value': h_v1})65 writer.writerow({'Name of Parameter': 'D_11', 'Value': D_11})66 67 writer.writerow({'Name of Parameter': '', 'Value': ''}) 68 69 writer.writerow({'Name of Parameter': 'Z_rotor', 'Value': Z_rotor}) 70 writer.writerow({'Name of Parameter': 'D2', 'Value': D2})71 writer.writerow({'Name of Parameter': 't2', 'Value': t2})72 writer.writerow({'Name of Parameter': 'k_i2', 'Value': k_i2})73 writer.writerow({'Name of Parameter': 'I2', 'Value': I2})74 writer.writerow({'Name of Parameter': 'Xi2', 'Value': Xi2}) 75 writer.writerow({'Name of Parameter': 'Ip', 'Value': Ip})76 writer.writerow({'Name of Parameter': 'g2', 'Value': g2})77 writer.writerow({'Name of Parameter': 'S_Cu2', 'Value': S_Cu2})78 writer.writerow({'Name of Parameter': 'gp', 'Value': gp})79 writer.writerow({'Name of Parameter': 'Sp', 'Value': Sp})80 writer.writerow({'Name of Parameter': 'a2', 'Value': a2}) 81 writer.writerow({'Name of Parameter': 'h_12', 'Value': h_12})82 writer.writerow({'Name of Parameter': 'h_42', 'Value': h_42})83 writer.writerow({'Name of Parameter': 'b_k2', 'Value': b_k2})84 writer.writerow({'Name of Parameter': 'h_z2', 'Value': h_z2})85 writer.writerow({'Name of Parameter': 'Sk', 'Value': Sk}) 86 if RotorSlot != 'Circular':87 writer.writerow({'Name of Parameter': 'b_z2_max', 'Value': b_z2_max})88 writer.writerow({'Name of Parameter': 'b_z2_min', 'Value': b_z2_min})89 writer.writerow({'Name of Parameter': 'b_z2_avg', 'Value': b_z2_avg})90 91 writer.writerow({'Name of Parameter': 'hp', 'Value': hp})92 writer.writerow({'Name of Parameter': 'bp', 'Value': bp}) 93 writer.writerow({'Name of Parameter': 'B_v2', 'Value': B_v2})94 writer.writerow({'Name of Parameter': 'h_v2', 'Value': h_v2})95 writer.writerow({'Name of Parameter': 'D22', 'Value': D_22})96 97 writer.writerow({'Name of Parameter': '', 'Value': ''})98 99 writer.writerow({'Name of Parameter': 'H_v1', 'Value': H_v1})100 writer.writerow({'Name of Parameter': 'l_v1', 'Value': l_v1}) 101 writer.writerow({'Name of Parameter': 'F_v1', 'Value': F_v1})102 writer.writerow({'Name of Parameter': 'H_z1', 'Value': H_z1})103 writer.writerow({'Name of Parameter': 'l_z1', 'Value': l_z1})104 writer.writerow({'Name of Parameter': 'F_z1', 'Value': F_z1})105 writer.writerow({'Name of Parameter': 'k_delta_1', 'Value': k_delta1})106 writer.writerow({'Name of Parameter': 'k_delta_2', 'Value': k_delta2})107 writer.writerow({'Name of Parameter': 'k_delta', 'Value': k_delta})108 writer.writerow({'Name of Parameter': 'H_delta', 'Value': H_delta})109 writer.writerow({'Name of Parameter': 'F_delta', 'Value': F_delta})110 """111 writer.writerow({'Name of Parameter': 'B_z2_max', 'Value': B_z2_max})112 writer.writerow({'Name of Parameter': 'B_z2_min', 'Value': B_z2_min})113 writer.writerow({'Name of Parameter': 'B_z2_avg', 'Value': B_z2_avg})114 """115 #writer.writerow({'Name of Parameter': 'H_z2_max', 'Value': H_z2_max})116 #writer.writerow({'Name of Parameter': 'H_z2_min', 'Value': H_z2_min})117 #writer.writerow({'Name of Parameter': 'H_z2_avg', 'Value': H_z2_avg})118 writer.writerow({'Name of Parameter': 'F_z2', 'Value': F_z2})119 writer.writerow({'Name of Parameter': 'l_v2', 'Value': l_v2})120 writer.writerow({'Name of Parameter': 'H_v2', 'Value': H_v2})121 writer.writerow({'Name of Parameter': 'F_v2', 'Value': F_v2})122 writer.writerow({'Name of Parameter': 'Fv', 'Value': Fv})123 124 writer.writerow({'Name of Parameter': 'I0_mif', 'Value': I0_mif})125 writer.writerow({'Name of Parameter': 'I0_mi[%]', 'Value': i0_mi_percentage})126 127 writer.writerow({'Name of Parameter': '', 'Value':''})128 129 writer.writerow({'Name of Parameter': 'l_avg', 'Value': l_sr1})130 writer.writerow({'Name of Parameter': 'L1', 'Value': L1})131 writer.writerow({'Name of Parameter': 'r1_15', 'Value': r1_15})132 writer.writerow({'Name of Parameter': 'r1_75', 'Value': r1_75})133 writer.writerow({'Name of Parameter': 'Dp', 'Value': Dp})134 writer.writerow({'Name of Parameter': 'r2_15', 'Value': r2_15})135 writer.writerow({'Name of Parameter': 'r2_75', 'Value': r2_75})136 writer.writerow({'Name of Parameter': 'k', 'Value': k})137 writer.writerow({'Name of Parameter': 'r2_75_prime', 'Value': r2_svedeno})138 writer.writerow({'Name of Parameter': 'lambda_k1', 'Value': lambda_k1})139 writer.writerow({'Name of Parameter': 'lambda_cv1', 'Value': lambda_cv1})140 writer.writerow({'Name of Parameter': 'lambda_d1', 'Value': lambda_d1})141 writer.writerow({'Name of Parameter': 'x1', 'Value': x_sigma1})142 writer.writerow({'Name of Parameter': 'lambda_k2', 'Value': lambda_k2})143 writer.writerow({'Name of Parameter': 'lambda_k2', 'Value': lambda_k2})144 writer.writerow({'Name of Parameter': 'lambda_cv2', 'Value': lambda_cv2})145 writer.writerow({'Name of Parameter': 'x2', 'Value': x_sigma2})146 writer.writerow({'Name of Parameter': 'x2_prime', 'Value': x_sigma2_svedeno})147 writer.writerow({'Name of Parameter': 'xm', 'Value': xm})148 writer.writerow({'Name of Parameter': 'rm', 'Value': rm})149 """150 writer.writerow({'Name of Parameter': '', 'Value': H_v1})151 writer.writerow({'Name of Parameter': 'H_v1', 'Value': H_v1})152 writer.writerow({'Name of Parameter': 'H_v1', 'Value': H_v1})153 writer.writerow({'Name of Parameter': 'H_v1', 'Value': H_v1})154 """155 writer.writerow({'Name of Parameter': 'P_Cu10', 'Value': P_Cu10})156 writer.writerow({'Name of Parameter': 'P_Cu_1n', 'Value': P_Cu_1n})157 writer.writerow({'Name of Parameter': 'P_Cu_2n', 'Value': P_Cu_2n})158 writer.writerow({'Name of Parameter': 'p_Fe_v1', 'Value': p_Fe_v1})159 writer.writerow({'Name of Parameter': 'm_Fe_v1', 'Value': m_Fe_v1})160 writer.writerow({'Name of Parameter': 'P_Fe_v1', 'Value': P_Fe_v1})161 writer.writerow({'Name of Parameter': 'p_Fe_z1', 'Value': p_Fe_z1})162 writer.writerow({'Name of Parameter': 'm_Fe_z1', 'Value': m_Fe_z1})163 writer.writerow({'Name of Parameter': 'P_Fe_z1', 'Value': P_Fe_z1})164 writer.writerow({'Name of Parameter': 'P_Fe', 'Value': P_Fe})165 writer.writerow({'Name of Parameter': 'P0', 'Value': P0})166 writer.writerow({'Name of Parameter': 'sigma_1', 'Value': sigma_1})167 writer.writerow({'Name of Parameter': 'R1', 'Value': R1})168 writer.writerow({'Name of Parameter': 'X1', 'Value': X1})169 writer.writerow({'Name of Parameter': 'R2', 'Value': R2})170 writer.writerow({'Name of Parameter': 'X2', 'Value': X2})171 writer.writerow({'Name of Parameter': 'I00', 'Value': I00})172 writer.writerow({'Name of Parameter': 'cos_phi00', 'Value': cos_phi00})173 writer.writerow({'Name of Parameter': 'Xk', 'Value': Xk}) ...
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!