Build and analyze a network model of hazards, causes, and controls
Project description
hazard-map
Build a network model from spreadsheets of hazard, cause, and control mappings and carry out useful analyses.
Overview
This is a simple command-line tool that takes an Excel workbook with tables of mappings and creates a network model to use for analyses and visualization.
Installation
Install the command-line application from PyPI with pip:
pip install hazard-map
Usage
Use the -h
flag to see the available options:
hazard-map -h
usage: hazard-map [-h] [-o OUTPUT_DIRECTORY] [-d PLOT_DPI] [-j | --output-json | --no-output-json] input_workbook
Build and analyze a network model of hazards, causes, and controls
positional arguments:
input_workbook The hazard mapping excel file to evaluate
options:
-h, --help show this help message and exit
-o OUTPUT_DIRECTORY, --output-directory OUTPUT_DIRECTORY
Set a directory for the script to save its outputs to
-d PLOT_DPI, --plot-dpi PLOT_DPI
Set a custom DPI (quality) for the plot output
-j, --output-json, --no-output-json
Save a json description of the mappings alongside the hazard log
Pass an Excel workbook (xlsx) file with hazard-cause and cause-control mappings in worksheets named "HazardCause Mapping" and "CauseControl Mapping" respectively:
hazard-map our_mappings.xlsx
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hazard_map-0.1.3.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for hazard_map-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e342e6c8913d9f606f09995715e0cea6a0eec72c0b410cfc67aeb9c96a2ea676 |
|
MD5 | c8a712b0392b108b0f1b90c3beb641d4 |
|
BLAKE2b-256 | 73d30bcf53285551e1d05f46bd3fbc339a17a31f49d234c508038ef891ce28f7 |