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

DemandPlanning: use KE to generate a random demand profile

parent fa23cf35
...@@ -55,10 +55,14 @@ class FutureDemandCreator(): ...@@ -55,10 +55,14 @@ class FutureDemandCreator():
# PPOS initial disaggregation profile # PPOS initial disaggregation profile
# XXX this issue arbitrary requests
demand_data = urllib.urlopen(G.demandFile).read()
wbin = xlrd.open_workbook(file_contents=demand_data)
# get a random demand profile from KE.
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):
if k == 0: if k == 0:
......
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