Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
e80075f5
Commit
e80075f5
authored
Sep 17, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DemandPlanning: use KE to generate a random demand profile
parent
fa23cf35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
dream/simulation/FutureDemandCreator.py
dream/simulation/FutureDemandCreator.py
+7
-3
No files found.
dream/simulation/FutureDemandCreator.py
View file @
e80075f5
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment