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
e6843375
Commit
e6843375
authored
Apr 16, 2015
by
panos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fixed in this plugin
parent
c3cc2e52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
dream/plugins/UpdateWIP.py
dream/plugins/UpdateWIP.py
+14
-12
No files found.
dream/plugins/UpdateWIP.py
View file @
e6843375
...
...
@@ -63,18 +63,20 @@ class UpdateWIP(SplitRoute.SplitRoute):
if
not
last_step
:
# find the step that follows (normal processing)
for
step
in
route
:
# the sequences must differ maximum one
if
int
(
sequence
)
+
1
==
int
(
step
.
get
(
'sequence'
,
0
)):
# and the corresponding step must have a defined technology
if
step
.
get
(
'technology'
,
None
):
# the station defined by the WIP must start with the technology initials (only INJM, EDM, and MILL)
if
workStation
.
startswith
(
step
[
'technology'
]):
last_step
=
step
# the time defined as remaining processing time is remainingSetupTime
remainingSetupTime
=
remainingProcessingTime
# and the remainingProcessingTime should be extracted from the step
remainingProcessingTime
=
step
.
get
(
'processingTime'
,
0
)
break
# introduced to fix the case were sequence is ''
if
not
step
.
get
(
'sequence'
,
0
)
==
''
:
# the sequences must differ maximum one
if
int
(
sequence
)
+
1
==
int
(
step
.
get
(
'sequence'
,
0
)):
# and the corresponding step must have a defined technology
if
step
.
get
(
'technology'
,
None
):
# the station defined by the WIP must start with the technology initials (only INJM, EDM, and MILL)
if
workStation
.
startswith
(
step
[
'technology'
]):
last_step
=
step
# the time defined as remaining processing time is remainingSetupTime
remainingSetupTime
=
remainingProcessingTime
# and the remainingProcessingTime should be extracted from the step
remainingProcessingTime
=
step
.
get
(
'processingTime'
,
0
)
break
# if the workstation provided is not a valid station but instead the name of a technology (this happens only with EDM, INJM, and MILL that have setup and processing seperate)
if
not
workStation
in
last_step
.
get
(
"stationIdsList"
,
[]):
if
workStation
==
last_step
.
get
(
"technology"
,
None
):
...
...
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