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 details)
File details
Details for the file rsrfile-0.9.6.tar.gz
.
File metadata
- Download URL: rsrfile-0.9.6.tar.gz
- Upload date:
- Size: 24.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fb57f3ad8314c5926151126d338dd6918a27a79a1faf2eb46a7a98bd88dd807 |
|
MD5 | 81584157911c2c63c9ce374c9805b472 |
|
BLAKE2b-256 | 08deb111c4022871c4178945d35fe68c8e617b4cc1d79ece074f6c4da2afaa4e |