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
f931f02e
Commit
f931f02e
authored
Aug 27, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
option to choose WIP source in batches input
parent
a7556349
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14881 additions
and
3 deletions
+14881
-3
dream/plugins/Batches/BatchesWIPKEtool.py
dream/plugins/Batches/BatchesWIPKEtool.py
+3
-0
dream/plugins/Batches/BatchesWIPShort.py
dream/plugins/Batches/BatchesWIPShort.py
+3
-3
dream/plugins/Batches/BatchesWIPSpreadsheet.py
dream/plugins/Batches/BatchesWIPSpreadsheet.py
+3
-0
dream/simulation/Examples/GUI_models/BatchesKEAndManualWIP.json
...simulation/Examples/GUI_models/BatchesKEAndManualWIP.json
+14872
-0
No files found.
dream/plugins/Batches/BatchesWIPKEtool.py
View file @
f931f02e
...
...
@@ -15,6 +15,9 @@ class BatchesWIPKEtool(plugin.InputPreparationPlugin):
"""
def
preprocess
(
self
,
data
):
if
data
[
'general'
].
get
(
'wipSource'
,
None
)
==
'Manually'
:
return
data
nodes
=
data
[
'graph'
][
'node'
]
# get the number of units for a standard batch
...
...
dream/plugins/Batches/BatchesWIPShort.py
View file @
f931f02e
...
...
@@ -13,12 +13,12 @@ class BatchesWIPShort(plugin.InputPreparationPlugin):
"""
def
preprocess
(
self
,
data
):
if
data
[
'general'
].
get
(
'wipSource'
,
None
)
==
'By KE'
:
return
data
nodes
=
data
[
'graph'
][
'node'
]
WIPData
=
data
[
'input'
].
get
(
self
.
configuration_dict
[
'input_id'
],
{})
batchCounter
=
0
from
pprint
import
pprint
# get the number of units for a standard batch
standardBatchUnits
=
0
for
node_id
,
node
in
nodes
.
iteritems
():
...
...
dream/plugins/Batches/BatchesWIPSpreadsheet.py
View file @
f931f02e
...
...
@@ -15,6 +15,9 @@ class BatchesWIPSpreadsheet(plugin.InputPreparationPlugin):
def
preprocess
(
self
,
data
):
""" Set the WIP in queue from spreadsheet data.
"""
if
data
[
'general'
].
get
(
'wipSource'
,
None
)
==
'By KE'
:
return
data
wipData
=
data
[
'input'
].
get
(
'wip_spreadsheet'
,
None
)
nodes
=
data
[
'graph'
][
'node'
]
...
...
dream/simulation/Examples/GUI_models/BatchesKEAndManualWIP.json
0 → 100644
View file @
f931f02e
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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