Commit 7c9eb92f authored by Jérome Perrin's avatar Jérome Perrin

DemandPlanning: read PPOS, SP & MA as int

parent e14da771
......@@ -75,7 +75,7 @@ class FutureDemandCreator():
nRows = sh.nrows
for i in range(1,nRows):
order = int(sh.cell_value(i,0)) - 1
MA = str(sh.cell_value(i,1))
MA = str(int(sh.cell_value(i,1)))
orderQty = float(sh.cell_value(i,2))
orderMinQty = float(sh.cell_value(i,3))
week = int(sh.cell_value(i,4)) - 1
......
......@@ -124,9 +124,9 @@ def readGeneralInput(data):
IG.CapacityDict[route_data[2][i]] = G.Capacity[i-3]
for i in range(4, len(route_data) - 1):
id = float(route_data[i][2])
ppos = float(route_data[i][0])
sp = float(route_data[i][1])
id = int(route_data[i][2])
ppos = int(route_data[i][0])
sp = int(route_data[i][1])
IG.RouteDict[id] = {'PPOS': ppos, 'SP': sp, 'route':{}}
for j in range(3, len(route_data[i]) - 1):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment