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
7c2fc371
Commit
7c2fc371
authored
Aug 11, 2014
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code cleanup
parent
9c525ae4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dream/simulation/Globals.py
dream/simulation/Globals.py
+2
-2
No files found.
dream/simulation/Globals.py
View file @
7c2fc371
...
...
@@ -190,7 +190,7 @@ def setWIP(entityList):
# for all the entities in the entityList
for
entity
in
entityList
:
# if the entity is of type Part
if
entity
.
type
==
'Part'
or
entity
.
type
==
'Batch'
or
entity
.
type
==
'SubBatch'
or
entity
.
type
==
'CapacityEntity'
:
if
entity
.
type
in
[
'Part'
,
'Batch'
,
'SubBatch'
,
'CapacityEntity'
]:
# these entities have to have a currentStation.
# TODO apply a more generic approach so that all need to have
if
entity
.
currentStation
:
...
...
@@ -201,7 +201,7 @@ def setWIP(entityList):
# if the entity is of type Job/OrderComponent/Order/Mould
# XXX Orders do no more run in the system, instead we have OrderDesigns
elif
entity
.
type
==
'Job'
or
entity
.
type
==
'OrderComponent'
or
entity
.
type
==
'Order'
or
entity
.
type
==
'OrderDesign'
or
entity
.
type
==
'Mould'
:
elif
entity
.
type
in
[
'Job'
,
'OrderComponent'
,
'Order'
,
'OrderDesign'
,
'Mould'
]
:
# find the list of starting station of the entity
currentObjectIds
=
entity
.
remainingRoute
[
0
].
get
(
'stationIdsList'
,[])
# if the list of starting stations has length greater than one then there is a starting WIP definition error
...
...
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