Skip to main content

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

To also install the GUI, run:

pipx install 'precice-config-visualizer[gui]'

Usage

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 and either outputs it to the terminal or writes it to a file. If the extension of the output file is .png, .pdf, .svg, or .jpg, then the tool will render the output using graghviz. The dot output is especially useful if the output needs to be altered for various reasons. To edit the dot version of the 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 precice-config.xml > graph.dot
precice-config-visualizer -o graph.dot precice-config.xml

To generate an image from precice-config.xml use:

precice-config-visualizer -o graph.png precice-config.xml
precice-config-visualizer -o graph.pdf precice-config.xml
precice-config-visualizer -o graph.svg precice-config.xml

To modify the dot graph from precice-config.xml yourself use:

precice-config-visualizer precice-config.xml > graph.dot
# Edit graph.dot here
dot -Tpdf -o graph.pdf graph.dot

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

precice_config_visualizer-1.1.3.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

precice_config_visualizer-1.1.3-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file precice_config_visualizer-1.1.3.tar.gz.

File metadata

File hashes

Hashes for precice_config_visualizer-1.1.3.tar.gz
Algorithm Hash digest
SHA256 4818312354fe3adf9bf787828f46550bfd88452527b109167002f485f3a878fc
MD5 b4f2ef8ef76145953bbc78c7dbf6390c
BLAKE2b-256 39f3a4004ea627edf808643efc191d40354068c8dc4747c9080b8610d558a6c8

See more details on using hashes here.

File details

Details for the file precice_config_visualizer-1.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for precice_config_visualizer-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ef12cdc47b7cbc289bf71b0f02816e66d5dc2229b7c49682a415e5094ee86995
MD5 8334c10eaa91a86ca2e146f2542e638d
BLAKE2b-256 5d21d335d7e0c994fe9e8f564f20af34e28b8058b013e89d985e9d19d84f708a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page