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
bd1f6d17
Commit
bd1f6d17
authored
Jun 11, 2014
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix so (sub)batch pass the id they get to the constractor of the parent Entity
parent
31e3c9cf
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 @
bd1f6d17
...
@@ -33,7 +33,7 @@ class Batch(Entity):
...
@@ -33,7 +33,7 @@ class Batch(Entity):
type
=
"Batch"
type
=
"Batch"
def
__init__
(
self
,
id
,
name
,
numberOfUnits
=
1
):
def
__init__
(
self
,
id
,
name
,
numberOfUnits
=
1
):
Entity
.
__init__
(
self
,
name
=
name
)
Entity
.
__init__
(
self
,
name
=
name
,
id
=
id
)
self
.
numberOfUnits
=
numberOfUnits
self
.
numberOfUnits
=
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
...
...
dream/simulation/SubBatch.py
View file @
bd1f6d17
...
@@ -32,7 +32,7 @@ class SubBatch(Entity):
...
@@ -32,7 +32,7 @@ class SubBatch(Entity):
type
=
"SubBatch"
type
=
"SubBatch"
def
__init__
(
self
,
id
,
name
,
numberOfUnits
=
1
,
parentBatch
=
None
):
def
__init__
(
self
,
id
,
name
,
numberOfUnits
=
1
,
parentBatch
=
None
):
Entity
.
__init__
(
self
,
name
=
name
)
Entity
.
__init__
(
self
,
name
=
name
,
id
=
id
)
self
.
numberOfUnits
=
numberOfUnits
self
.
numberOfUnits
=
numberOfUnits
self
.
parentBatch
=
parentBatch
self
.
parentBatch
=
parentBatch
self
.
batchId
=
parentBatch
.
id
self
.
batchId
=
parentBatch
.
id
...
...
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