RMViewer is a graphing tool that allows you to view representative models in different projections. It allows you to analyze risk curves, cross plots, histograms, and monitor the convergence of solutions.
There are three ways to set up RMViewer locally:
-
Download the binary for your operating system from the Releases page page.
-
Install the package and its dependencies listed in pyproject.toml:
pip install . -
The standard development environment. It uses Task to automatize development process.
Click here for instructions.
RMViewer can be used in two ways: via CLI or directly in Python.
-
You must provide the path to a valid JSON configuration file using the required --config_view argument.
Examples:
-
<exec_path> --config_view <json_file_path> -
task run -- --config_view <json_file_path> -
python rmviewer/__main__.py --config_view <json_file_path> -
You can use the software directly from Python through a simplified interface.
[!note] If you are running outside the project root directory, set the PYTHONPATH environment variable:
Linux:
export PYTHONPATH="/path/to/project:$PYTHONPATH"Windows (cmd):
set PYTHONPATH=C:\path\to\project;%PYTHONPATH%For a complete example, please check: examples/script_rmviewer.py
-
An example configuration file is available at /examples/config_viewer.json.
The Task tool provides an easy way to automatize the whole development process.
Make sure you have the following tools installed:
- Conda
- Docker
- pre-commit
- Task (v3.0+)
task run(Command-line interface)- To pass arguments use
--, e.g.task run -- --help
- To pass arguments use
A conda environment is automatically created or updated.
task checkto run all tasks, or:task lint:check(Ruff linter)task format:check(Ruff formatter)task type:check(ty type checker)
Some tools also support automatic fixing for some known problems:
The pre-commit tool is also configured to run some checks automatically before new commits.
Pre-built binaries are available at the Releases page.
Linux:
task build:linux(application binary)task dist:linux(.deband.rpminstallers)
Windows:
task build:windows(application binary)task dist:windows(NSIS installer)
Files will be available at:
rmviewer/out/
Tip
Build tasks are executed in an isolated Docker container, so you'll need to be sure that application requirements are correctly configured in the Dockerfile when making changes.