Python module for read RSR files (RiskSpectrum PSA result files)
- 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.
# PyPI
pip install rsrfile
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)
rsrfile.RSRFile.mcs_summary
- Basic Event
- CCF Group
- Parameter
- Attribute
- Component
- System
- Event Group