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
5d2d4dbe
Commit
5d2d4dbe
authored
Jun 25, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try statement added to save from bugs
parent
d9cc785b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
13 deletions
+17
-13
dream/plugins/JobShop/JSComponentTabSchedule.py
dream/plugins/JobShop/JSComponentTabSchedule.py
+17
-13
No files found.
dream/plugins/JobShop/JSComponentTabSchedule.py
View file @
5d2d4dbe
...
@@ -116,6 +116,8 @@ class JSComponentTabSchedule(plugin.OutputPreparationPlugin, TimeSupportMixin):
...
@@ -116,6 +116,8 @@ class JSComponentTabSchedule(plugin.OutputPreparationPlugin, TimeSupportMixin):
self
.
convertToFormattedRealWorldTime
(
entranceTime
),
self
.
convertToFormattedRealWorldTime
(
entranceTime
),
processingTime
,
processingTime
,
operatorId
])
operatorId
])
try
:
# remove all the elements that have to do with buffers
# remove all the elements that have to do with buffers
tabElements
=
copy
(
result
[
self
.
configuration_dict
[
'output_id'
]])
tabElements
=
copy
(
result
[
self
.
configuration_dict
[
'output_id'
]])
tabElements
.
pop
(
0
)
tabElements
.
pop
(
0
)
...
@@ -123,11 +125,13 @@ class JSComponentTabSchedule(plugin.OutputPreparationPlugin, TimeSupportMixin):
...
@@ -123,11 +125,13 @@ class JSComponentTabSchedule(plugin.OutputPreparationPlugin, TimeSupportMixin):
for
row
in
tabElements
:
for
row
in
tabElements
:
stationId
=
row
[
4
]
stationId
=
row
[
4
]
stationClass
=
data
[
'graph'
][
'node'
][
stationId
][
'_class'
]
stationClass
=
data
[
'graph'
][
'node'
][
stationId
][
'_class'
]
if
stationClass
in
[
'Dream.MouldAssemblyBuffer'
,
'Dream.ConditionalBuffer
'
]:
if
stationClass
in
[
'Dream.MouldAssemblyBuffer'
,
'Dream.ConditionalBuffer'
,
'Dream.OrderDecomposition
'
]:
result
[
self
.
configuration_dict
[
'output_id'
]].
remove
(
row
)
result
[
self
.
configuration_dict
[
'output_id'
]].
remove
(
row
)
# sort the elements according to Entrance Time
# sort the elements according to Entrance Time
firstRow
=
result
[
self
.
configuration_dict
[
'output_id'
]].
pop
(
0
)
firstRow
=
result
[
self
.
configuration_dict
[
'output_id'
]].
pop
(
0
)
result
[
self
.
configuration_dict
[
'output_id'
]].
sort
(
key
=
lambda
x
:
x
[
5
])
result
[
self
.
configuration_dict
[
'output_id'
]].
sort
(
key
=
lambda
x
:
x
[
5
])
result
[
self
.
configuration_dict
[
'output_id'
]].
insert
(
0
,
firstRow
)
result
[
self
.
configuration_dict
[
'output_id'
]].
insert
(
0
,
firstRow
)
except
:
pass
return
data
return
data
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