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 | Provenance | Actions |
|---|---|---|---|---|
| rsrfile-0.9.6.tar.gz | 24.8 kB | Without provenance | Details for rsrfile-0.9.6.tar.gz |
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
|
Security for rsrfile 0.9.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.