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
c19ac9fb
Commit
c19ac9fb
authored
May 13, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correction in machine.releaseOperator
parent
fc042153
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dream/simulation/Machine.py
dream/simulation/Machine.py
+1
-1
No files found.
dream/simulation/Machine.py
View file @
c19ac9fb
...
@@ -1196,7 +1196,7 @@ class Machine(CoreObject):
...
@@ -1196,7 +1196,7 @@ class Machine(CoreObject):
if
station
:
if
station
:
if
issubclass
(
station
.
__class__
,
CoreObject
):
if
issubclass
(
station
.
__class__
,
CoreObject
):
operator
.
schedule
[
-
1
][
"exitTime"
]
=
self
.
env
.
now
operator
.
schedule
[
-
1
][
"exitTime"
]
=
self
.
env
.
now
elif
not
operator
.
schedule
[
-
1
][
"station"
].
get
(
"id"
,
None
)
==
"off-shift"
:
elif
not
operator
.
schedule
[
-
1
][
"station"
].
get
(
"id"
,
None
)
in
[
"off-shift"
,
"on-break"
]
:
operator
.
schedule
[
-
1
][
"exitTime"
]
=
self
.
env
.
now
operator
.
schedule
[
-
1
][
"exitTime"
]
=
self
.
env
.
now
# if the operator becomes unavailable
# if the operator becomes unavailable
if
(
not
self
.
currentOperator
.
onShift
)
or
self
.
currentOperator
.
onBreak
:
if
(
not
self
.
currentOperator
.
onShift
)
or
self
.
currentOperator
.
onBreak
:
...
...
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