Commit 5583fd0b authored by panos's avatar panos Committed by Georgios Dagkakis

Modify the script

parent ecb685e1
...@@ -39,8 +39,7 @@ def generateDemandPlanning(input_url, PPOSQuantity=1000, PlannedWeek=1, PPOSToBe ...@@ -39,8 +39,7 @@ def generateDemandPlanning(input_url, PPOSQuantity=1000, PlannedWeek=1, PPOSToBe
""" """
# id is given as an integer and minus one # id is given as an integer and minus one
# ToDo we have to standardize data # ToDo we have to standardize data
PPOSToBeDisaggregated='PPOS'+str(PPOSToBeDisaggregated+1) # PPOSToBeDisaggregated='PPOS'+str(PPOSToBeDisaggregated+'1')
# Read data from the exported Excel file from RapidMiner and call the Import_Excel object of the KE tool to import this data in the tool # Read data from the exported Excel file from RapidMiner and call the Import_Excel object of the KE tool to import this data in the tool
...@@ -213,10 +212,10 @@ def generateDemandPlanning(input_url, PPOSQuantity=1000, PlannedWeek=1, PPOSToBe ...@@ -213,10 +212,10 @@ def generateDemandPlanning(input_url, PPOSQuantity=1000, PlannedWeek=1, PPOSToBe
PPOSProfile[t]=dictb PPOSProfile[t]=dictb
PPOSProfileString=json.dumps(PPOSProfile, indent=5) PPOSProfileString=json.dumps(PPOSProfile, indent=5)
t+=1 t+=1
#write json file #write json file
PPOSProfileFile.write(PPOSProfileString) PPOSProfileFile.write(PPOSProfileString)
import StringIO import StringIO
out = StringIO.StringIO() out = StringIO.StringIO()
book.save(out) book.save(out)
......
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