Skip to main content

rsrfile

Python module for read RSR files (RiskSpectrum PSA result files)

image

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)

Source distribution for rsrfile 0.9.6
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

Release history Release notifications | RSS feed

This release

0.9.6 This release

1 release file

0.9.5

1 release file

0.9.4.1

1 release file

0.9.4

1 release file

0.9.3

1 release file

0.9.2

1 release file

0.9.1

1 release file

0.9.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page