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

parent d8c7132d
......@@ -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
......
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