0

I want to make fault tree analysis of system using python and xml file, but I couldn't find enough material to help me in that. Let say I have a simple xml file which has Top event and OR logic gate which connects three events A1,A2,A3. I want to: 1- Make a visualization of fault tree 2- calculate top event probability using given probabilities of A1,A2,A3 events through python script.

the xml file is as following

<define-fault-tree name="FT">
<house-event name="Top Event"/>
    <define-gate name="G1_OR">
        <or>
            <house-event name="A1" />
            <house-event name="A2"/>
            <house-event name="A3"/>
        </or>
    </define-gate>
</define-fault-tree>
tree = ET.parse('tut_1.xml')
root=tree.getroot()

I used xml library to access xml file but couldn't find enough material to complete

thanks in advance

Daly
  • 1

0 Answers0