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
fe26e7e3
Commit
fe26e7e3
authored
Jun 13, 2014
by
Ioannis Papagiannopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setStartWip corrected for the case of design parts
parent
974e65ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
dream/simulation/readWip.py
dream/simulation/readWip.py
+9
-7
No files found.
dream/simulation/readWip.py
View file @
fe26e7e3
...
...
@@ -636,14 +636,16 @@ def setStartWip():
#===========================================================================
# for all the entities in the entityList
for entity in G.DesignList:
# print entity.id
# if the entity is not in the WIP dict then move it to the starting station.
if not entity.id in WIP.keys():
# print entity.id
# the id of the entity without the -D ending added when creating the orderDesign
simple_id=entity.id.split('
-
')[0]
if not simple_id in WIP.keys():
# perform the default action
setWIP([entity])
# if the entity is in the WIP dict then move it to the station defined.
elif
entity.
id in WIP.keys():
objectID=WIP[
entity.
id]["station"]
elif
simple_
id in WIP.keys():
objectID=WIP[
simple_
id]["station"]
# print objectID
assert objectID!='', '
there
must
be
a
stationID
given
to
set
the
WIP
'
from Globals import findObjectById
...
...
@@ -651,8 +653,8 @@ def setStartWip():
assert object!=None, '
the
station
defined
in
the
WIP
is
not
a
valid
Station
'
# find the station by its id, if there is no station then place it
# in the starting queue (QCAD), (QENG)
entry_time=float(WIP[
entity.
id]["entry"])
exit_time=float(WIP[
entity.
id]["exit"])
entry_time=float(WIP[
simple_
id]["entry"])
exit_time=float(WIP[
simple_
id]["exit"])
# XXX alreadyProcessedFor=currentTime-entry_time
# XXX if the exit time is no grater than the entry then raise an exception as for machines is not yet implemented
try:
...
...
@@ -725,7 +727,7 @@ def setStartWip():
elif
entity
.
id
in
WIP
.
keys
():
objectID
=
WIP
[
entity
.
id
][
"station"
]
#===================================================================
#
print objectID, '((0)) '*10
#
print objectID, '((0)) '*10
#===================================================================
assert
objectID
!=
''
,
'there must be a stationID given to set the WIP'
from
Globals
import
findObjectById
...
...
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