Read RiskSpectrum PSA results bin-files
Project description
rsrfile
Python module for read RSR files (RiskSpectrum PSA result files)
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
# PyPI
pip install rsrfile
Usage
The code below displays common information on the calculation and a table of importance measurementscfor attributes:
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)
Documentation
Summary results
rsrfile.RSRFile.mcs_summary
MCS
Mod. MCS
Risk Importance Measures
- Basic Event
- CCF Group
- Parameter
- Attribute
- Component
- System
- Event Group
Other stats
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rsrfile-0.9.6.tar.gz
(24.8 kB
view hashes)