Mauritius Systemic Tool for the Analysis of (infrastructure) Risk
# Mauritius Strategic Tool for the Analysis of Risk (mu-star)
The repository `nismod/mu-star` contains
project-specific codes and configuration to run climate-related risk and
resilience analysis of infrastructure networks in Mauritius.
## Outline
The overall technical architecture of the project follows this outline:
- data and results are held separately from code, shared under appropriate
licence agreements
- `nismod/mu-star` holds the modelling and
analysis code
- implements the reproducible modelling and analysis pipeline or "workflow"
- depends on data collection and preprocessing
- technologies:
- programming language of choice is Python, suggest using micromamba to
manage environment
- workflow tool of choice is snakemake
- the workflow rules in `./workflow` define the processing steps to run the
full analysis, from source data inputs
- nested within the workflow, each infrastructure system (energy, transport,
water) has a model that calculates metrics of disruption
- models are developed as separate packages within `./src/ `,
exposing a standard interface that can then be called from the workflow
rules
- inputs are:
- data describing the system (assets, usage)
- a list of assets to consider "disrupted" or non-functional
- outputs are metrics of disruption to supply, for example:
- customers (or demand zones) with loss of service
- costs of supply or re-routing in disrupted state
- levels of service
- `nismod/irv-standalone` holds the
web application code
- implements the results visualisation platform or "viewer"
- depends on data (results) generated by the workflow
- technologies:
- development setup uses docker and docker-compose
- backend is in Python and FastAPI, Django, with vector and raster
tileservers
- frontend in TypeScript and React, with maplibre-gl-js and d3 among other
dependencies
- database is Postgres with PostGIS
## Setup and installation
Clone or download this repository from
GitHub:
```shell
git clone git@github.com:nismod/mu-s …