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
4325eeb6
Commit
4325eeb6
authored
Sep 19, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DemandPlanningKE: treat MA id as string
parent
19e6cfaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
dream/KnowledgeExtraction/PilotCases/InputData_DemandPlanning.py
...nowledgeExtraction/PilotCases/InputData_DemandPlanning.py
+2
-4
No files found.
dream/KnowledgeExtraction/PilotCases/InputData_DemandPlanning.py
View file @
4325eeb6
...
@@ -136,8 +136,7 @@ def generateDemandPlanning(input_url):
...
@@ -136,8 +136,7 @@ def generateDemandPlanning(input_url):
sheet1
.
write
(
0
,
2
,
'Total # Units'
)
sheet1
.
write
(
0
,
2
,
'Total # Units'
)
sheet1
.
write
(
0
,
3
,
'Min # Units'
)
sheet1
.
write
(
0
,
3
,
'Min # Units'
)
sheet1
.
write
(
0
,
4
,
'Planned Week'
)
sheet1
.
write
(
0
,
4
,
'Planned Week'
)
# XXX
sheet1
.
write
(
t
,
1
,
(
i
[
0
].
replace
(
'MA'
,
''
,
1
)))
sheet1
.
write
(
t
,
1
,
int
(
i
[
0
].
replace
(
'MA'
,
''
,
1
)))
sheet1
.
write
(
t
,
2
,
i
[
1
])
sheet1
.
write
(
t
,
2
,
i
[
1
])
sheet1
.
write
(
t
,
3
,
i
[
2
])
sheet1
.
write
(
t
,
3
,
i
[
2
])
sheet1
.
write
(
t
,
4
,
i
[
3
])
sheet1
.
write
(
t
,
4
,
i
[
3
])
...
@@ -196,8 +195,7 @@ def generateDemandPlanning(input_url):
...
@@ -196,8 +195,7 @@ def generateDemandPlanning(input_url):
sheet2
.
write
(
0
,
4
,
'Planned Week'
)
sheet2
.
write
(
0
,
4
,
'Planned Week'
)
sheet2
.
write
(
t
,
0
,
t
)
sheet2
.
write
(
t
,
0
,
t
)
# XXX the MA id should not have MA prefix...
# XXX the MA id should not have MA prefix...
sheet2
.
write
(
t
,
1
,
int
(
dictPPOSMA
[
PPOSToBeDisaggregated
][
i
].
replace
(
'MA'
,
sheet2
.
write
(
t
,
1
,
dictPPOSMA
[
PPOSToBeDisaggregated
][
i
].
replace
(
'MA'
,
''
,
1
))
''
,
1
)))
sheet2
.
write
(
t
,
2
,
dictPPOS
[
dictPPOSMA
[
PPOSToBeDisaggregated
][
i
]][
0
])
sheet2
.
write
(
t
,
2
,
dictPPOS
[
dictPPOSMA
[
PPOSToBeDisaggregated
][
i
]][
0
])
sheet2
.
write
(
t
,
3
,
dictPPOS
[
dictPPOSMA
[
PPOSToBeDisaggregated
][
i
]][
1
])
sheet2
.
write
(
t
,
3
,
dictPPOS
[
dictPPOSMA
[
PPOSToBeDisaggregated
][
i
]][
1
])
...
...
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