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
9c758f6c
Commit
9c758f6c
authored
Aug 20, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle also stations that work on full batch
parent
30e62cde
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
2 deletions
+27
-2
dream/plugins/Batches/BatchesWIPShort.py
dream/plugins/Batches/BatchesWIPShort.py
+27
-2
No files found.
dream/plugins/Batches/BatchesWIPShort.py
View file @
9c758f6c
...
@@ -129,8 +129,33 @@ class BatchesWIPShort(plugin.InputPreparationPlugin):
...
@@ -129,8 +129,33 @@ class BatchesWIPShort(plugin.InputPreparationPlugin):
unitsToCompleteBatch
=
standardBatchUnits
unitsToCompleteBatch
=
standardBatchUnits
# for stations that operate on full batches
# for stations that operate on full batches
else
:
else
:
pass
stationId
=
group
[
0
]
print
'@@@@@@@@@@@@@@@@@@@@@@@@@'
,
stationId
workingBatchSize
=
standardBatchUnits
stationWIPData
=
[
element
for
element
in
WIPData
if
element
[
0
]
==
stationId
][
0
]
print
stationWIPData
awaiting
=
stationWIPData
[
1
]
complete
=
stationWIPData
[
2
]
if
not
awaiting
:
awaiting
=
0
awaiting
=
int
(
awaiting
)
if
not
complete
:
complete
=
0
complete
=
int
(
complete
)
buffered
=
awaiting
-
(
awaiting
%
workingBatchSize
)
bufferedBatches
=
int
(
buffered
/
standardBatchUnits
)
print
buffered
for
i
in
range
(
bufferedBatches
):
bufferId
=
self
.
getBuffer
(
data
,
stationId
)
self
.
createBatch
(
data
,
bufferId
,
currentBatchId
,
currentBatchId
,
standardBatchUnits
)
batchCounter
+=
1
currentBatchId
=
'Batch_'
+
str
(
batchCounter
)
+
'_WIP'
if
complete
:
unitsToProcess
=
standardBatchUnits
-
complete
self
.
createBatch
(
data
,
stationId
,
currentBatchId
,
currentBatchId
,
standardBatchUnits
,
unitsToProcess
=
unitsToProcess
)
print
unitsToProcess
print
'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@'
return
data
return
data
# creates a sub-batch in a station
# creates a sub-batch in a station
...
...
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