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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file supersigma2-errorcodes-1.2.tar.gz.

File metadata

  • Download URL: supersigma2-errorcodes-1.2.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.8.11 Darwin/18.7.0

File hashes

Hashes for supersigma2-errorcodes-1.2.tar.gz
Algorithm Hash digest
SHA256 510852e86d4e5f0596cfd6b1c1b515cb8dbdf8204a565be38a559eb93bbd94ce
MD5 2145c2b620420b1c09942682a0d8da82
BLAKE2b-256 7b4987ea441ea51029d024dba5e973dbefdcafc9a2e9972d620142189762612c

See more details on using hashes here.

File details

Details for the file supersigma2_errorcodes-1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for supersigma2_errorcodes-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8dc967261cb9821c4f78349eece9b48a5c0402ce53bbeb3a782ed46b4305dd48
MD5 d02668f2727c3aa177d5d555d77802c7
BLAKE2b-256 71667c3fb18f0eb4644dfa69470fb3da2718413f4798d8698d9e65cdf98f20e9

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