Commit e80075f5 authored by Jérome Perrin's avatar Jérome Perrin

DemandPlanning: use KE to generate a random demand profile

parent fa23cf35
...@@ -55,9 +55,13 @@ class FutureDemandCreator(): ...@@ -55,9 +55,13 @@ class FutureDemandCreator():
# PPOS initial disaggregation profile # PPOS initial disaggregation profile
# XXX this issue arbitrary requests
demand_data = urllib.urlopen(G.demandFile).read() # get a random demand profile from KE.
wbin = xlrd.open_workbook(file_contents=demand_data) from dream.KnowledgeExtraction.PilotCases.InputData_DemandPlanning \
import generateDemandPlanning
G.generatedDemandPlanning = generateDemandPlanning(G.demandFile)
wbin = xlrd.open_workbook(file_contents=G.generatedDemandPlanning)
MAData=G.RouteDict MAData=G.RouteDict
for k in range(2): for k in range(2):
......
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