hanspi42 / signalflowgrapher

This Python tool allows you to draw signal-flow graphs, calculate transfer functions (SymPy code is generated for further use in Jupyter notebooks), do graph manipulations (e.g., node elimination and graph transposition), and save a graph as TikZ for use in LaTeX documentation.
Artistic License 2.0
30 stars 6 forks source link
mason-graph python signal-flow-graph signal-flow-graphs sympy

SignalFlowGrapher

Version 1.1 dev

Intended for use from the autumn term of 2023 onwards. This version does not yet have installers for Windows, MacOS and Linux.

Please report all issues you find to hanspeter.schmid@fhnw.ch or create an issue on github, https://github.com/hanspi42/signalflowgrapher/issues

License

This package is distributed under the Artistic License 2.0, which you find in the file LICENSE and on the internet on https://opensource.org/licenses/Artistic-2.0.

Authors of Version 0.2

The first version checed in was the result of a bachelor thesis at the University of Applied Sciences and Arts Northwestern Switzerland, https://www.fhnw.ch/en/. Students: Simon Näf and Nicolai Wassermann. Advisors: Dominik Gruntz and Hanspeter Schmid. Contact author: hanspeter.schmid@fhnw.ch

Installation with installer

Download the installer from the latest release (1.0): https://github.com/hanspi42/signalflowgrapher/releases

Unfortunately we can only provide an unsigned installer. If you do not wish to accept that risk (or if your system's policy does not allow you), you can always run it in a Python environent, as described below.

Run in a Python environment

For MacOS on ARM processors, use an use an x86_64 Python installation (read this: https://github.com/hanspi42/signalflowgrapher/issues/48#issue-1906889457).

Installation of plain Python or of Anaconda

Get the code

Create and activate virtual environment with Anaconda

This is the prefered way to install it.

Run application from terminal

Create and activate virtual environment with Python

Instead of creating the virtual environent with Anaconda, you can also do the following (but I have not tested it):

Run unit tests and format tests

User manual and tips

Manual

There is none yet, but to familiarize yourself with signal-flow graphs, you can

Tips

Credits

Implemention of Johnson's algorithm: https://github.com/qpwo/python-simple-cycles