sysLoss
sysLoss is a tool for analyzing power trees, system power and losses. From the smallest IoT sensor to large industrial installations. The tool is efficient and easy to use, the analysis result provides a detailed report on voltages, currents, power and efficiency for every component defined in the system. Output format is Pandas DataFrame: Create charts, plots and export to Excel and other formats.
Installation
$ pip install sysloss
or
$ conda install conda-forge::sysloss
On Windows, make sure Graphviz is installed and availale on PATH.
Usage
Analyze the power tree of a simple battery-powered bluetooth sensor:
from sysloss.components import *
from sysloss.system import System
bts = System("Bluetooth sensor", Source("CR2032", vo=3.0, rs=10))
bts.add_comp("CR2032", comp=Converter("Buck 1.8V", vo=1.8, eff=0.87))
bts.add_comp("Buck 1.8V", comp=PLoad("MCU", pwr=13e-3))
bts.add_comp("CR2032", comp=Converter("Boost 5V", vo=5.0, eff=0.82))
bts.add_comp("Boost 5V", comp=RLoss("RC filter", rs=6.8))
bts.add_comp("RC filter", comp=ILoad("Sensor", ii=6e-3))
bts.tree()
Bluetooth sensor
└── CR2032
├── Boost 5V
│ └── RC filter
│ └── Sensor
└── Buck 1.8V
└── MCU
df = bts.solve()
print(df)
Create graphical power tree diagrams:
import sysloss.diagram as sd
sd.make_diag(bts, fname="bts.png")
And heat diagrams:
sd.make_hdiag(bts, fname="bts-heat.png")
Documentation
The documentation includes tutorials in the form of Jupyter notebooks, located in docs/nb.
Contributing
Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.
License
sysloss was created by Geir Drange. It is licensed under the terms of the MIT license.
Metadata
Release files for sysloss 1.10.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sysloss-1.10.1.tar.gz | 32.7 kB | Without provenance | Details for sysloss-1.10.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sysloss-1.10.1-py3-none-any.whl | Python 3 | none | any | Details for sysloss-1.10.1-py3-none-any.whl |
Total release size: 66.7 kB
Release files / sysloss-1.10.1.tar.gz
| Download URL | sysloss-1.10.1.tar.gz |
|---|---|
| Size | 32.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca6b5d68b43c4d441fe179eecfa9afe8c265b877c81be7f5b67cf8a77f4ba2ef
|
|
BLAKE2b-256 checksum How to use checksums |
6463e9efbdd124a2702bc6f25e93062bf8bd63103258956b590639579e46a49b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / sysloss-1.10.1-py3-none-any.whl
| Download URL | sysloss-1.10.1-py3-none-any.whl |
|---|---|
| Size | 34.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
99ec476e6e2d23c232c27ff7d6c17f299b4ba02e7ee0a3e58fdedf50e9c4d15f
|
|
BLAKE2b-256 checksum How to use checksums |
16b9435c532ed3f6094901fb9ff265f9bfdfef2142906d2d08f18db212e37387
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for sysloss 1.10.1
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.