Skip to main content

SignalFlowGrapher

SignalFlowGrapher Title Image

Version 3.1.0

  • "Evaluate Mason" now accepts SymPy's singleton S(): e.g., S(1)/2 and S.Half are now the exact rational 1/2. However, S can no longer be used as a symbol name or node name.
  • Safer weight validation: branch weights with undefined function calls (e.g. f(x)/2) are reported in the input mask and in a message dialog instead of silently breaking the Mason evaluation.

Version 3.0.0

  • Zoom from 10% to 200%: Ctrl + mouse wheel, Alt+I / Alt+U for in / out, Alt+O for 100%, Alt+Z to fit the whole graph. Nodes, lines, arrows and text scale together.
  • Mini map (View > Mini Map, Alt+N): the whole graph and the visible part; click or drag to move the view. Off by default, the choice is remembered.
  • Panning no longer changes the graph, and a saved file remembers the part that was shown. Files of version 2 open unchanged; files of version 3 can still be opened by version 2.
  • Fixes: pasting after panning snaps to the grid and keeps label offsets; branch labels follow after undo/redo of a node move; two nodes at the same position can be connected; the TikZ export is reproducible.

Version 2.1.3: signalflowgrapher-register also works on Linux and macOS.

This version can be installed with pip or downloaded and run locally. Please follow the steps in the section Getting started.

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

Getting started

The easiest way is to install it with pip install signalflowgrapher. After that, you can start it with the command signalflowgrapher. On Windows, MacOS and Linux, you can associate .sfg files with the signalflowgrapher by running signalflowgrapher-register, this will also create a shortcut on the desktop. signalflowgrapher-deregister removes the association again.

If you want to download it and run it locally, then clone or download from https://github.com/hanspi42/signalflowgrapher, e.g. using git clone https://github.com/hanspi42/signalflowgrapher. Next:

Install Dependencies

To install the dependencies, you can use either Miniforge or Python environments.

With Miniforge

  • If you do not have it yet, download Miniforge from https://conda-forge.org/download/ and install it.
  • Open a miniforge prompt.
  • cd to the top directory of this repository.
  • Build a python environment with conda env create --file=requirements/sfg.yml.
  • Activate the evironment with conda activate sfg.
  • cd src.
  • Start the signalflowgrapher with python -m signalflowgrapher.

With Python evironments

  • Get the latest version of Python from https://www.python.org/
  • Open the repository’s root directory in a terminal
  • Create virtual environment using the command python -m venv sfg
  • On Windows run sfg\Scripts\activate.bat or sfg\Scripts\Activate.ps1
  • On Unix or MacOS run source sfg/bin/activate
  • Run pip install -r requirements/base.txt
  • cd src.
  • Start the signalflowgrapher with python -m signalflowgrapher.

User manual and tips

Manual

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

Tips

  • The signalflowgrapher supports export as PNG, but you can get nice SVG versions of the graphs by exporting TikZ, converting it to pdf with pdflatex, and then run https://github.com/dawbarton/pdf2svg .

For Developers

Developer documentation

See more details in Developer documentation for V2.0.

Run unit tests and format tests

  • Go to the signalflowgrapher\src\main\python directory in a terminal or an anaconda terminal
  • Run python -m unittest
  • Run flake8 -v

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.

Contributors

Many people have discussed this, given feedback, reported issues, ...

The largest code contributions are from Simon Näf, Nicolai Wassermann, Michael Saladin, Pascal Gsell, and Hanspeter Schmid.

Authors of Version 0.2

The first version checked 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

Credits

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

Metadata

Release files for signalflowgrapher 3.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for signalflowgrapher 3.1.0
File Size Uploaded Provenance Actions
signalflowgrapher-3.1.0.tar.gz 531.8 kB Without provenance Details for signalflowgrapher-3.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for signalflowgrapher 3.1.0
File Interpreter ABI Platform Actions
signalflowgrapher-3.1.0-py3-none-any.whl Python 3 none any Details for signalflowgrapher-3.1.0-py3-none-any.whl

Total release size: 1.1 MB

Release files / signalflowgrapher-3.1.0.tar.gz

Download URL signalflowgrapher-3.1.0.tar.gz
Size 531.8 kB
Tags Source
SHA-256 checksum
How to use checksums
46c4354e5af30b11d63d72cebba2bd0e661f2ce9759e6a53d86a880feac59740
BLAKE2b-256 checksum
How to use checksums
c93673f7487dfcda68e5b8b42eaf34f02740e7f0f4dc47df9fd374ca5e076e10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release files / signalflowgrapher-3.1.0-py3-none-any.whl

Download URL signalflowgrapher-3.1.0-py3-none-any.whl
Size 582.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a6c9106b8a4a2ad74fbcf90cac3ee234d4fe56516854ae6231ad6bc1a436945
BLAKE2b-256 checksum
How to use checksums
2eee8e7ef875774926d073efc948608f035674b9f4c7dccc51b6c4dd57fa628c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Security for signalflowgrapher 3.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page