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
aea2932a
Commit
aea2932a
authored
Oct 21, 2014
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Sub)Batch to receive units to process also as decimals
parent
493ce77e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
dream/simulation/Batch.py
dream/simulation/Batch.py
+1
-1
dream/simulation/SubBatch.py
dream/simulation/SubBatch.py
+1
-1
No files found.
dream/simulation/Batch.py
View file @
aea2932a
...
@@ -41,7 +41,7 @@ class Batch(Entity):
...
@@ -41,7 +41,7 @@ class Batch(Entity):
self
.
numberOfUnits
=
int
(
numberOfUnits
)
self
.
numberOfUnits
=
int
(
numberOfUnits
)
self
.
numberOfSubBatches
=
1
#integer that shows in how many sub batches is the batch broken
self
.
numberOfSubBatches
=
1
#integer that shows in how many sub batches is the batch broken
self
.
subBatchList
=
[]
#list that contains the sub-batches that this batch has been broken into
self
.
subBatchList
=
[]
#list that contains the sub-batches that this batch has been broken into
self
.
unitsToProcess
=
int
(
unitsToProcess
)
self
.
unitsToProcess
=
int
(
float
(
unitsToProcess
)
)
#===========================================================================
#===========================================================================
# finds the schedule of each child and returns the combined route
# finds the schedule of each child and returns the combined route
...
...
dream/simulation/SubBatch.py
View file @
aea2932a
...
@@ -37,7 +37,7 @@ class SubBatch(Entity):
...
@@ -37,7 +37,7 @@ class SubBatch(Entity):
currentStation
=
currentStation
)
currentStation
=
currentStation
)
self
.
numberOfUnits
=
int
(
numberOfUnits
)
self
.
numberOfUnits
=
int
(
numberOfUnits
)
self
.
parentBatch
=
parentBatch
self
.
parentBatch
=
parentBatch
self
.
unitsToProcess
=
int
(
unitsToProcess
)
self
.
unitsToProcess
=
int
(
float
(
unitsToProcess
)
)
# if the parent batch was not given find it or create it
# if the parent batch was not given find it or create it
if
not
self
.
parentBatch
:
if
not
self
.
parentBatch
:
# check if the parent batch is already created. If not, then create it
# check if the parent batch is already created. If not, then create it
...
...
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