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
5cebc530
Commit
5cebc530
authored
Aug 19, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set sub-batches currently processed in station
parent
e73fd39f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
dream/plugins/Batches/BatchesWIPShort.py
dream/plugins/Batches/BatchesWIPShort.py
+11
-1
No files found.
dream/plugins/Batches/BatchesWIPShort.py
View file @
5cebc530
...
...
@@ -87,7 +87,7 @@ class BatchesWIPShort(plugin.InputPreparationPlugin):
if
unitsToCompleteBatch
==
0
:
subBatchCounter
=
0
batchCounter
+=
1
# set the
buffered sub-batches to the previous
station
# set the
completed sub-batches to the next
station
for
i
in
range
(
int
(
proceeded
/
workingBatchSize
)):
bufferId
=
self
.
getSuccessors
(
data
,
stationId
)[
0
]
self
.
createSubBatch
(
data
,
bufferId
,
currentBatchId
,
currentBatchId
,
subBatchCounter
,
workingBatchSize
)
...
...
@@ -96,6 +96,16 @@ class BatchesWIPShort(plugin.InputPreparationPlugin):
if
unitsToCompleteBatch
==
0
:
subBatchCounter
=
0
batchCounter
+=
1
# set the sub-batch inside the station
if
currentCompleted
:
self
.
createSubBatch
(
data
,
stationId
,
currentBatchId
,
currentBatchId
,
subBatchCounter
,
workingBatchSize
,
unitsToProcess
=
currentCompleted
)
subBatchCounter
+=
1
unitsToCompleteBatch
-=
workingBatchSize
if
unitsToCompleteBatch
==
0
:
subBatchCounter
=
0
batchCounter
+=
1
# for stations that do not share sub-batches with others
else
:
pass
...
...
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