Skip to main content

A parser for DMC SuperSigma2 error codes

Project description

supersigma2-errorcodes

A python parser for DMC SuperSigma2 error codes.

Installation

Needs Python >= 3.6.

Install using pip:

pip install supersigma2-errorcodes

If you only need the standalone sigma-script to parse error codes in the command line, it is recommended to use pipx for the installation:

pipx install supersigma2-errorcodes

Command line usage

A sigma command line script is installed by pip which can be used like this:

$ sigma 13.2 18.3 19.2
[13.2] Accelerator more than 50% at power up: Wig-wag high at power up
[18.3] High sided mosfets short circuit: M3 mosfets
[19] Motor stall protection

If no error codes are given, the usage is interactive.

Library usage

from sigma import code_to_string

code_to_string("12.2")
>>> "[12.2] Power up sequence fault: Traction: Forward switch active at power up"

code_to_string("18.3", include_code=False)
>>> "High sided mosfets short circuit: M3 mosfets"

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

supersigma2-errorcodes-1.2.tar.gz (20.3 kB view hashes)

Uploaded Source

Built Distribution

supersigma2_errorcodes-1.2-py3-none-any.whl (21.0 kB view hashes)

Uploaded Python 3

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