if remainingProcessingTime dict is already formulated as dict then do not do that again

parent d8c7132d
...@@ -33,8 +33,11 @@ class InsertWIP(plugin.InputPreparationPlugin): ...@@ -33,8 +33,11 @@ class InsertWIP(plugin.InputPreparationPlugin):
remainingProcessingTime = work.get("remainingProcessingTime", 0) remainingProcessingTime = work.get("remainingProcessingTime", 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:
# XXX hard-coded distribution of type Fixed - reconsider for stochastic analyis if isinstance(remainingProcessingTime, dict):
wip[-1]["remainingProcessingTime"] = {"Fixed": {"mean": remainingProcessingTime}} 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 node["wip"] = wip
return data return data
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment