openLIFU-test-scripts
Utility and verification scripts for OpenLIFU hardware validation, burn-in, and data analysis.
Overview
This repository contains:
- Thermal and burn-in verification scripts for transmitter and console behavior
- Self-test and hardware sanity scripts
- Data processing helpers for logs and report generation
- Historical and legacy test content kept for reference
The main active package is verification, which contains most test runners and shared test logic.
Repository Layout
verification/: Primary test package and production requirement test scriptstools/: Helper utilities and support scriptstutorials/: Example and tutorial contentlogs/: Output logs produced by test runsplots/: Generated plots and visualizationslegacy/: Older scripts retained for backwards referencedeprecated/: Retired scripts that should not be used for new runsbuild/,dist/: Build artifacts
Requirements
- Python 3.10 to 3.12
- OpenLIFU SDK installed and accessible
- Device access permissions for serial/USB interfaces when running against hardware
From pyproject.toml:
- Package name:
verification - Runtime dependency:
openlifu-sdk
Setup
- Create and activate a virtual environment.
Windows PowerShell:
python -m venv .venv
.\.venv\Scripts\Activate.ps1
- Install the package in editable mode from repository root:
pip install -e .
Common Test Scripts
In verification/
-
prodreqs_tx_short_verification_test.py- Short transmitter verification path
- Useful for communication and functional checks
-
prodreqs_tx_long_verification_test.py- Long-duration heating/burn-in workflow scaffold
-
prodreqs_base_class.py- Shared base class, telemetry monitoring, limits, and CLI argument parser
Running Tests
Because several scripts use package-relative imports, run them from the repository root with module syntax.
Examples:
python -m verification.prodreqs_tx_short_verification_test --frequency 400 --num-modules 2 --test-runthrough
python -m verification.prodreqs_tx_long_verification_test --frequency 400 --num-modules 2
Frequently Used CLI Options
Most production requirement scripts consume argument parsing from verification/prodreqs_base_class.py.
Useful options include:
--frequency KHZ--num-modules N--test-case N--test-runthrough--simulate--external-power--console-shutoff-temp C--tx-shutoff-temp C--ambient-shutoff-temp C--temperature-check-interval S--temperature-log-interval S--log-dir DIR--verboseor--quiet--skip-logfile
Logs and Outputs
- Runtime logs are typically written under
logs/ - Additional outputs may be created in:
plots/verification/*.csv- project root files like
combined_logs.xlsx
Use --log-dir to direct log output to a custom path.
Safety Notes
When running against physical hardware:
- Ensure emergency stop and power cutoff procedures are known before starting
- Confirm shutoff temperatures and monitoring intervals are appropriate
- Prefer running with conservative thresholds during initial validation
Troubleshooting
-
Import errors:
- Ensure you run via
python -m verification.<module>from repo root - Confirm
pip install -e .completed successfully
- Ensure you run via
-
Device connection failures:
- Verify hardware is connected and powered
- Confirm SDK/device drivers are installed
- Re-run with
--verbosefor more detailed logs
-
No log file generated:
- Check
--skip-logfilewas not set - Confirm write access to the selected log directory
- Check
Development Notes
- Some files in
legacy/anddeprecated/are intentionally preserved and may not reflect current behavior - Keep new work in
verification/unless intentionally adding migration content - Maintain script compatibility with Python 3.10-3.12
Metadata
Release files for openlifu-verification 1.1.6
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 |
|---|---|---|---|---|
| openlifu_verification-1.1.6.tar.gz | 73.6 kB | Without provenance | Details for openlifu_verification-1.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openlifu_verification-1.1.6-py3-none-any.whl | Python 3 | none | any | Details for openlifu_verification-1.1.6-py3-none-any.whl |
Total release size: 162.4 kB
Release files / openlifu_verification-1.1.6.tar.gz
| Download URL | openlifu_verification-1.1.6.tar.gz |
|---|---|
| Size | 73.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c694cce3bdf0cae78e195edcc7386bc68d5c304668a6b6afaff1a0f88ec0aaa
|
|
BLAKE2b-256 checksum How to use checksums |
06f70e6cd4d61e16984172269e2349f8fc3f14098af585f6e60e792b110c94c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Release files / openlifu_verification-1.1.6-py3-none-any.whl
| Download URL | openlifu_verification-1.1.6-py3-none-any.whl |
|---|---|
| Size | 88.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc855f4f723a1ec0261d8df861ed7aca41cd285319c960dd4e97b06d8af8bfb3
|
|
BLAKE2b-256 checksum How to use checksums |
b21ebd4b93e5d860f30a3d9a3fc763728816fb584d20468ee25cd407bdc9c210
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Security for openlifu-verification 1.1.6
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.