Commit 33601a8b authored by Georgios Dagkakis's avatar Georgios Dagkakis

main script to read deteriorationType of failure

parent 7e69c3ff
......@@ -1329,7 +1329,8 @@ def createObjectInterruptions():
pass
else:
victim=Globals.findObjectById(element['id'])
F=Failure(victim, distribution=failure, repairman=victim.repairman)
deteriorationType=failure.get('deteriorationType', 'constant')
F=Failure(victim, distribution=failure, repairman=victim.repairman, deteriorationType=deteriorationType)
G.ObjectInterruptionList.append(F)
G.FailureList.append(F)
# if there is a shift pattern defined
......
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