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
2d8f9e99
Commit
2d8f9e99
authored
Aug 28, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add label of spreadsheet in model
parent
d2c9ebce
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
dream/plugins/CapacityStations/ChangeWIPSpreadsheet.py
dream/plugins/CapacityStations/ChangeWIPSpreadsheet.py
+3
-2
dream/simulation/Examples/GUI_models/CapacityProject7OrdersSetCompletedWIP.json
...les/GUI_models/CapacityProject7OrdersSetCompletedWIP.json
+3
-3
No files found.
dream/plugins/CapacityStations/ChangeWIPSpreadsheet.py
View file @
2d8f9e99
...
...
@@ -10,8 +10,9 @@ class ChangeWIPSpreadsheet(plugin.InputPreparationPlugin):
# find the column where the WIP is given
i
=
0
for
element
in
projectData
[
0
]:
if
element
==
'
WIP
'
:
if
element
==
'
Completed
'
:
wipColumn
=
i
projectData
[
0
][
i
]
=
'WIP'
break
i
+=
1
if
projectData
:
...
...
@@ -39,7 +40,7 @@ class ChangeWIPSpreadsheet(plugin.InputPreparationPlugin):
requiredCapacity
=
float
(
projectData
[
row
+
stationRecord
][
5
])
completedCapacityDict
[
stationId
]
=
completedCapacity
requiredCapacityDict
[
stationId
]
=
requiredCapacity
# create the wip dictionar
t
# create the wip dictionar
y
wipDict
=
self
.
calculateWIPDict
(
data
,
completedCapacityDict
,
requiredCapacityDict
,
projectId
)
# change the completed data with the wip data in the spreadsheet
for
stationRecord
in
range
(
numberOfOperations
):
...
...
dream/simulation/Examples/GUI_models/CapacityProject7OrdersSetCompletedWIP.json
View file @
2d8f9e99
...
...
@@ -151,7 +151,7 @@
"type"
:
"number"
},
{
"name"
:
"
WIP
"
,
"name"
:
"
Completed
"
,
"type"
:
"number"
},
{
...
...
@@ -226,7 +226,7 @@
"plugin_list"
:
[
{
"_class"
:
"dream.plugins.CapacityStations.ChangeWIPSpreadsheet.ChangeWIPSpreadsheet"
,
"input_id"
:
"
createCapacityStationWIP
"
"input_id"
:
"
projects_spreadsheet
"
},
{
"_class"
:
"dream.plugins.CapacityStations.CapacityStationsSetAssemblySpace.CapacityStationsSetAssemblySpace"
,
...
...
@@ -960,7 +960,7 @@
"Assembly Space"
,
"Operation"
,
"Capacity Requirement"
,
"
WIP
"
,
"
Completed
"
,
"Earliest Start Date"
],
[
...
...
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