A tool for visualizing a preCICE configuration file as a dot file.
Project description
preCICE Config-Visualizer
The config-visualizer
is a tool meant to help visualize and debug precice configuration xml files. This tool produces a dot file as output, which visualizes the various participants, communicators and meshes defined in the configuration file and the movement of data between them.
Installation options
Install directly from PyPi using pipx or via pip:
pipx install precice-config-visualizer
Usage
The config visualizer can be use via the CLI or the interactive GUI.
GUI
precice-config-visualizer-gui [CONFIG-FILE]
You can launch the GUI directly from the command line. Passing the path to a configuration file is optional. All further adjustments are made directly in the GUI.
CLI
precice-config-visualizer --help
precice-config-visualizer [OPTIONS] [-o OUTFILE] [<CONFIG-FILE>]
The command line version of the tool transforms the XML configuration file into a dot graph file. This is especially useful if the output needs to be altered for various reasons. To edit the actual graph, displaying it using a dot viewer such as xdot can be helpful.
The tool reads from stdin if no configuration file is given as an argument and the output is printed to stdout if no output filename if specified using the -o
option.
To generate graph.dot
from precice-config.xml
use:
precice-config-visualizer -o graph.dot precice-config.xml
To precice-config.xml
as PDF use:
precice-config-visualizer precice-config.xml | dot -Tpdf -o graph.pdf
Further options can be used to control the output appearance. Some information can be turned off or merged. For a full list of options, run:
precice-config-visualizer --help
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
Built Distribution
Hashes for precice-config-visualizer-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dffc150af76b0944ab25af62773474c50d2d90c0466cc3c63b3e40c8c999b611 |
|
MD5 | 3adb814963a1db49a293e89b9f2a9c5f |
|
BLAKE2b-256 | 3f91b923e4c6f5d2077e40a3cc41f23f5b4251e565a8a3a546e092acab9e5c06 |
Hashes for precice_config_visualizer-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b51d130533396c20ab2ed6ded5ab454fd14da363e0f3308150cf11c41badfcda |
|
MD5 | 3b440dfd3aaf0cbbcd78d67941eef90e |
|
BLAKE2b-256 | 3db57054034d4762f467e51dc066a04111580fcb62941cc1f75ed0e2b7a5a5f0 |