Skip to content

he-zhe/Python-Fault-Tree

Repository files navigation

Python-Fault-Tree

Description

A python 3 implementation of fault tree, with xml import support. A min-cut of leaves can be generated by Monte Carlo methods.

Dependencies

Python 3.5

Usage

To parse raw xml(e.g. example/raw_tree.xml) into tree xml(e.g. example/example.xml):

python parse_falt_tree.py  # check the result of example/raw_tree.xml
python parse_falt_tree.py input_xml output_xml  # using customized input/output

To get the result from example/example.xml, in terminal:

python min-cut.py

To use customized xml file:

python min-cut.py n_result n_repeat xmlfile

Credit

Thanks Dr.Ennan Zhai for comments.

About

An implementation of fault tree in Python 3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages