-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathEXcel_test.py
More file actions
47 lines (37 loc) · 1.15 KB
/
EXcel_test.py
File metadata and controls
47 lines (37 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# -*- coding: utf-8 -*-
"""
Created on Thu Aug 20 10:50:51 2020
@author: chans
"""
import pandas as pd
import sys
import layer
import home
home.home_axes()
excel_file = 'POF_recipe_test.xlsx'
data = pd.read_excel(excel_file) #Reads file and makes it a dataframe
print(data)
#layer_num = data['Layer #'][0]
#print()
#print(layer_num)
#print()
#
#data.drop(index = 19, inplace = True) #removes last row from dataframe
#print(data)
for i in range(len(data)):
layerNum = data['Layer #'][i]
layerMass = data['Mass (g)'][i]
layerAngle = data['Fiber Orientation'][i]
print("Layer #%d, Mass:%d, Orientation:%d"%(layerNum, layerMass, layerAngle))
layer.make_layer(layerMass, layerAngle)
# try:
# layerNum = data['Layer #'][i]
# layerMass = data['Mass (g)'][i]
# layerAngle = data['Fiber Orientation'][i]
#
# print("Layer #%d, Mass:%d, Orientation:%d"%(layerNum, layerMass, layerAngle))
#
# layer.make_layer(layerMass, layerAngle)
# except:
# print("Error interpreting recipe")
# sys.exit()