Skip to main content

Actions Status Code coverage Codacy PyPI Conda Code style: black Conv. commits Zenodo DOI

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

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)

result

Create graphical power tree diagrams:

import sysloss.diagram as sd

sd.make_diag(bts, fname="bts.png")

tree

And heat diagrams:

sd.make_hdiag(bts, fname="bts-heat.png")

heat

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.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 sysloss 1.10.0
File Size Uploaded
sysloss-1.10.0.tar.gz 32.6 kB Details

Built distribution (wheel)

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

Total release size: 66.6 kB

Release files / sysloss-1.10.0.tar.gz

Download URL sysloss-1.10.0.tar.gz
Size 32.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2a7011f081767dbae8c8b76eb0e8b0977e8e33ea7a4d94168e15432e3d086d94
BLAKE2b-256 checksum
How to use checksums
593b88fdfe0842de032e068e76c31e5de83319b47bd55e5308b1669f413d2e3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release files / sysloss-1.10.0-py3-none-any.whl

Download URL sysloss-1.10.0-py3-none-any.whl
Size 33.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b7ad206db5fb4da432d7b5f49fe74f925bfcd352172a6a5a2c3c36e83a92c1b5
BLAKE2b-256 checksum
How to use checksums
f36fd021f79b1aca0d92271bf42a698651fabd924dc82b25e3a2e25421029aff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release history Release notifications | RSS feed

This release

1.10.0 This release

2 release files

1.9.0

2 release files

1.8.1

2 release files

1.8.0

2 release files

1.7.0

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

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