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
8bf180ee
Commit
8bf180ee
authored
Mar 10, 2015
by
Ioannis Papagiannopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
if remainingProcessingTime dict is already formulated as dict then do not do that again
parent
d8c7132d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
dream/plugins/InsertWIP.py
dream/plugins/InsertWIP.py
+5
-2
No files found.
dream/plugins/InsertWIP.py
View file @
8bf180ee
...
...
@@ -33,6 +33,9 @@ class InsertWIP(plugin.InputPreparationPlugin):
remainingProcessingTime
=
work
.
get
(
"remainingProcessingTime"
,
0
)
# XXX the time is considered to be provided as a single value
if
remainingProcessingTime
:
if
isinstance
(
remainingProcessingTime
,
dict
):
wip
[
-
1
][
"remainingProcessingTime"
]
=
remainingProcessingTime
else
:
# XXX hard-coded distribution of type Fixed - reconsider for stochastic analyis
wip
[
-
1
][
"remainingProcessingTime"
]
=
{
"Fixed"
:
{
"mean"
:
remainingProcessingTime
}}
node
[
"wip"
]
=
wip
...
...
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