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
Metadata
Release files for rsrfile 0.9.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rsrfile-0.9.6.tar.gz | 24.8 kB | Details |
Release files / rsrfile-0.9.6.tar.gz
| Download URL | rsrfile-0.9.6.tar.gz |
|---|---|
| Size | 24.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9fb57f3ad8314c5926151126d338dd6918a27a79a1faf2eb46a7a98bd88dd807
|
|
BLAKE2b-256 checksum How to use checksums |
08deb111c4022871c4178945d35fe68c8e617b4cc1d79ece074f6c4da2afaa4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|