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
5583fd0b
Commit
5583fd0b
authored
Mar 13, 2015
by
panos
Committed by
Georgios Dagkakis
Mar 24, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify the script
parent
ecb685e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
dream/KnowledgeExtraction/PilotCases/DemandPlanning/InputData_DemandPlanning.py
...ion/PilotCases/DemandPlanning/InputData_DemandPlanning.py
+3
-4
No files found.
dream/KnowledgeExtraction/PilotCases/DemandPlanning/InputData_DemandPlanning.py
View file @
5583fd0b
...
@@ -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
)
...
...
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