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
eac3431b
Commit
eac3431b
authored
Mar 12, 2015
by
Ioannis Papagiannopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remainingSetupTime also considered on WIP injection to nodes
parent
167adcb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
dream/plugins/InsertWIP.py
dream/plugins/InsertWIP.py
+8
-0
No files found.
dream/plugins/InsertWIP.py
View file @
eac3431b
...
@@ -49,6 +49,7 @@ class InsertWIP(plugin.InputPreparationPlugin):
...
@@ -49,6 +49,7 @@ class InsertWIP(plugin.InputPreparationPlugin):
wip
[
-
1
][
"operator"
]
=
operator
wip
[
-
1
][
"operator"
]
=
operator
# remaining Processing Time
# remaining Processing Time
remainingProcessingTime
=
work
.
get
(
"remainingProcessingTime"
,
0
)
remainingProcessingTime
=
work
.
get
(
"remainingProcessingTime"
,
0
)
remainingSetupTime
=
work
.
get
(
'remainingSetupTime'
,
0
)
# XXX the time is considered to be provided as a single value
# XXX the time is considered to be provided as a single value
if
remainingProcessingTime
:
if
remainingProcessingTime
:
if
isinstance
(
remainingProcessingTime
,
dict
):
if
isinstance
(
remainingProcessingTime
,
dict
):
...
@@ -56,6 +57,13 @@ class InsertWIP(plugin.InputPreparationPlugin):
...
@@ -56,6 +57,13 @@ class InsertWIP(plugin.InputPreparationPlugin):
else
:
else
:
# XXX hard-coded distribution of type Fixed - reconsider for stochastic analyis
# XXX hard-coded distribution of type Fixed - reconsider for stochastic analyis
wip
[
-
1
][
"remainingProcessingTime"
]
=
{
"Fixed"
:
{
"mean"
:
remainingProcessingTime
}}
wip
[
-
1
][
"remainingProcessingTime"
]
=
{
"Fixed"
:
{
"mean"
:
remainingProcessingTime
}}
# XXX the time is considered to be provided as a single value
if
remainingSetupTime
:
if
isinstance
(
remainingSetupTime
,
dict
):
wip
[
-
1
][
"remainingSetupTime"
]
=
remainingSetupTime
else
:
# XXX hard-coded distribution of type Fixed - reconsider for stochastic analyis
wip
[
-
1
][
"remainingSetupTime"
]
=
{
"Fixed"
:
{
"mean"
:
remainingSetupTime
}}
node
[
"wip"
]
=
wip
node
[
"wip"
]
=
wip
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