Metadata-Version: 2.1
Name: rsrfile
Version: 0.9.5
Summary: Read RiskSpectrum PSA results bin-files
Home-page: https://github.com/HexQuant/rsrfile
Author: Kravchenko Vladimir S
Author-email: kvover@gmail.com
Project-URL: Bug Reports, https://github.com/HexQuant/rsrfile/issues
Project-URL: Source, https://github.com/HexQuant/rsrfile
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Classifier: License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)
Classifier: Natural Language :: English
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: C
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.8, <4
Description-Content-Type: text/markdown
License-File: LICENSE

# rsrfile
Python module for read RSR files (RiskSpectrum PSA result files)

[![image](https://img.shields.io/pypi/v/rsrfile.svg)](https://pypi.python.org/pypi/rsrfile/)

## Features
* Read minimal cut sets;
* Read of importance measurements table of basic events, CCF groups, attributes, systems, components and events groups;
* Read CDF and PDF value table;
* Read common calculation info. Such as calculation time, number of MCS, cutoff threshold, etc.

## Installation
```sh
# PyPI
pip install rsrfile
```

## Usage
The code below displays common information on the calculation and a table of importance measurementscfor attributes:
```python
import rsrfile
import pandas as pd

with rsrfile.open('<path to RSR file>', '<open mode> "r" or "w"') as f:
    print(f.MCSSummary)
    attr = pd.DataFrame(
        f.AttrImpTable[1:],
        columns=f.AttrImpTable[0])
    print(attr)
```
