Metadata-Version: 2.4
Name: signalviewer
Version: 1.30.0
Summary: Signal Viewer - an offline workbench to analyse and validate time-series and measurement data: test runs, simulation output (MATLAB / Simulink), CSV, Parquet, HDF5, CAN, ROS 2, flight logs and parameter sweeps.
License-Expression: MIT
Project-URL: Homepage, https://github.com/DavidAlpert11/SignalViewer
Project-URL: Documentation, https://davidalpert11.github.io/SignalViewer/
Project-URL: Changelog, https://github.com/DavidAlpert11/SignalViewer/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/DavidAlpert11/SignalViewer/issues
Project-URL: Releases, https://github.com/DavidAlpert11/SignalViewer/releases
Keywords: time series,measurement data,data analysis,validation,test data,simulation,parameter sweep,signals,plotting,flight test,flight log,can bus,ardupilot,px4,mavlink,ulog,ros2,mcap,csv,parquet,hdf5,matlab,offline
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Operating System :: OS Independent
Classifier: Environment :: Web Environment
Classifier: Framework :: FastAPI
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Visualization
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Natural Language :: Hebrew
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: fastapi>=0.110
Requires-Dist: pydantic>=2.0
Requires-Dist: uvicorn>=0.27
Requires-Dist: python-multipart>=0.0.9
Requires-Dist: numpy>=1.24
Requires-Dist: pandas>=2.0
Requires-Dist: scipy>=1.10
Requires-Dist: pyarrow>=12.0
Requires-Dist: h5py>=3.8
Requires-Dist: python-bidi>=0.4
Requires-Dist: matplotlib>=3.7
Requires-Dist: python-docx>=1.0
Requires-Dist: pymavlink>=2.4.40
Requires-Dist: pyserial>=3.5
Requires-Dist: pyulog>=1.0
Requires-Dist: mcap>=1.1
Requires-Dist: mcap-ros2-support>=0.5
Requires-Dist: lz4>=4.0
Requires-Dist: zstandard>=0.21
Requires-Dist: openpyxl>=3.1
Provides-Extra: desktop
Requires-Dist: pywebview>=5.0; extra == "desktop"
Provides-Extra: all
Requires-Dist: pywebview>=5.0; extra == "all"
Dynamic: license-file

<p align="center">
  <img src="https://raw.githubusercontent.com/DavidAlpert11/SignalViewer/v1.30.0/assets/png/icon-128.png" width="88" alt="Signal Viewer icon">
</p>

<h1 align="center">Signal Viewer</h1>

<p align="center">
  <b>Find what went wrong. Prove what is right. Send the answer.</b><br>
  An offline workbench for engineers who analyse and validate time-series and measurement data –<br>
  test runs, simulation output, logs and parameter sweeps – on their own machine.
</p>

<p align="center">
  <a href="https://pypi.org/project/signalviewer/"><img alt="PyPI" src="https://img.shields.io/pypi/v/signalviewer?label=PyPI"></a>
  <img alt="Python 3.9+" src="https://img.shields.io/badge/python-3.9%2B-3776AB">
  <a href="https://github.com/DavidAlpert11/SignalViewer/blob/v1.30.0/LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-blue"></a>
  <a href="https://davidalpert11.github.io/SignalViewer/"><img alt="Documentation" src="https://img.shields.io/badge/docs-site-0A7BBB"></a>
</p>

<p align="center">
  <a href="https://github.com/DavidAlpert11/SignalViewer/releases/latest"><b>Download</b></a> (Windows, Linux, macOS)
  &nbsp;·&nbsp; <a href="https://davidalpert11.github.io/SignalViewer/"><b>Documentation</b></a>
  &nbsp;·&nbsp; <a href="https://davidalpert11.github.io/SignalViewer/GUIDE.he/"><b>מדריך בעברית</b></a>
  &nbsp;·&nbsp; 🎬 <a href="https://github.com/DavidAlpert11/SignalViewer/blob/v1.30.0/docs/media/demo_simulation.mp4">90-second demo</a>
</p>

```bash
pip install signalviewer && signalviewer        # the app, with its examples - nothing else to prepare
```

<p align="center">
  <img src="https://raw.githubusercontent.com/DavidAlpert11/SignalViewer/v1.30.0/docs/images/00_hero.png" alt="A flight judged against its simulation: roll and pitch overlaid, the differences within a ±3° tolerance, the cursor on the worst moment, and Compare's verdict" width="100%">
</p>

## Why Signal Viewer

Open a recording or a simulation's output and see every signal on one time axis. Compare it with the run it
should match, find what changed and why, check it against your limits, choose parameters from a sweep of
runs – and send a report anyone can open. It is made for test engineers (flight, vehicle, bench) and
simulation engineers, and it runs entirely on your machine: no account, no cloud, no telemetry, no internet.

- **Any time-series data** – CSV, Parquet, HDF5, MATLAB `.mat`, CAN + `.dbc`, ROS 2 `.mcap`, flight logs, or your
  own format through a short Python reader ([formats](#supported-formats)).
- **Runs side by side** – different clocks and rates aligned; every shared signal ranked by how much it differs.
- **What changed?** – the signals that left their usual range, in time order, and which one led which.
- **Pass / fail you can defend** – limits, a golden run with tolerances, data quality; the same checks headless in CI.
- **Sweeps** – the parameter sets that hold in every scenario, and a loop that runs your simulation until the best
  stops changing.
- **No point left out** – numbers always use all the data; plots are reduced only so that every spike is still drawn.
- **One file to send** – an offline HTML report that opens with how the conclusion was reached; PDF and Word too; a plot or a tab live in a Confluence page (every sample, through its HTML macro).
- **English and Hebrew** (right to left), light and dark themes.

## Quick start

| | |
|---|---|
| **Windows** | `SignalViewer-Setup-X.Y.Z.exe` or the portable `.zip` from the [latest release](https://github.com/DavidAlpert11/SignalViewer/releases/latest) – no administrator rights |
| **Linux / macOS** | the portable `.7z` from the [latest release](https://github.com/DavidAlpert11/SignalViewer/releases/latest) (macOS: Apple silicon), or Python below |
| **Python 3.9+** | `pip install signalviewer`, then `signalviewer` (the app) or `signalviewer-cli` (the command line) |
| **From source** | `git clone`, `pip install -r requirements.txt`, `python run.py` – the first start builds the UI (Node.js LTS, about half a minute) |

Then pick an example on the welcome screen – an ArduPilot log, a fault to find, a simulation against its
flight, the same mission flown twice, a folder of recordings, a smart sweep. Each has a known answer and says
what to do next; more (a car, a pump on a test bench, a results table, three drones) are in *Help → Examples*.
The packages are not code-signed yet – [what to do the first time](https://github.com/DavidAlpert11/SignalViewer/blob/v1.30.0/docs/install.md#first-start-windows-and-macos-warnings).

## A tour

<table>
<tr>
<td width="50%" valign="top">
<b>Find what went wrong</b><br>
Two cursors around the moment, then <i>What changed?</i> – who moved first and who led whom.
<a href="https://davidalpert11.github.io/SignalViewer/investigate-tutorial/">Tutorial</a><br><br>
<a href="https://github.com/DavidAlpert11/SignalViewer/blob/v1.30.0/docs/images/47_what_changed.gif"><img src="https://raw.githubusercontent.com/DavidAlpert11/SignalViewer/v1.30.0/docs/images/47_what_changed.gif" alt="What changed? as it happens: two cursors pulled around the roll's first jump, the question asked, and the answer - five signals changed, the first is Wind at -0.44 s, who leads whom as arrows"></a>
</td>
<td width="50%" valign="top">
<b>One verdict per file</b><br>
Your limits per phase or mode, the data's quality and a log's health check – each a click from its moment.
<a href="https://davidalpert11.github.io/SignalViewer/sim-vs-flight/">Sim vs. flight</a><br><br>
<a href="https://github.com/DavidAlpert11/SignalViewer/blob/v1.30.0/docs/images/09_health_check.png"><img src="https://raw.githubusercontent.com/DavidAlpert11/SignalViewer/v1.30.0/docs/images/09_health_check.png" alt="Checks: one verdict for the file, the data quality and the log's health findings as tinted cards, each a click from its moment"></a>
</td>
</tr>
<tr>
<td width="50%" valign="top">
<b>Plots that read like instruments</b><br>
Values at the cursor with their units, statistics of what is on screen, modes as a band.
<a href="https://davidalpert11.github.io/SignalViewer/GUIDE/">User guide</a><br><br>
<a href="https://github.com/DavidAlpert11/SignalViewer/blob/v1.30.0/docs/images/01_overview.png"><img src="https://raw.githubusercontent.com/DavidAlpert11/SignalViewer/v1.30.0/docs/images/01_overview.png" alt="Several plots on one time axis: the legend with values at the cursor and their units, the modes as a band inside the plot"></a>
</td>
<td width="50%" valign="top">
<b>Choose parameters that hold everywhere</b><br>
Filter on any axis – the count and the table follow; which sets hold in every scenario, the next runs to make.
<a href="https://davidalpert11.github.io/SignalViewer/smart-sweep-demo/">Smart-sweep demo</a><br><br>
<a href="https://github.com/DavidAlpert11/SignalViewer/blob/v1.30.0/docs/images/45_sweeps_filter.gif"><img src="https://raw.githubusercontent.com/DavidAlpert11/SignalViewer/v1.30.0/docs/images/45_sweeps_filter.gif" alt="Sweeps, All runs: a filter on energy and then on roll error narrows the 810 runs step by step; the count above the plot follows each step"></a>
</td>
</tr>
</table>

**See it in space.** Any recording with positions, on satellite photos or an offline map, in 3D over the real
terrain – the cursor's moment on the track and in every plot at once. Online maps are opt-in; offline is the
default. [Map and 3D](https://davidalpert11.github.io/SignalViewer/maps-and-3d/)

<p align="center"><a href="https://github.com/DavidAlpert11/SignalViewer/blob/v1.30.0/docs/images/46_satellite_replay.gif"><img src="https://raw.githubusercontent.com/DavidAlpert11/SignalViewer/v1.30.0/docs/images/46_satellite_replay.gif" alt="A flight in 3D over satellite photos and the terrain, played through: the vehicle moves along its track, coloured by flight mode, while the cursor moves in the altitude and roll plots under it" width="100%"></a></p>

**Send the answer.** One HTML file that opens with the process in brief – the data, what was checked, what it
shows, the conclusion – then the plots, map and 3D on one time bar. Any browser, no install. Or a plot or a tab
straight into a Confluence page, still live: zoom to every sample, the cursor, the statistics and the notes.
A folder of recordings becomes one table too: the same numbers measured in each, one row per recording.

<p align="center"><a href="https://github.com/DavidAlpert11/SignalViewer/blob/v1.30.0/docs/images/42_report_process.png"><img src="https://raw.githubusercontent.com/DavidAlpert11/SignalViewer/v1.30.0/docs/images/42_report_process.png" alt="A report opening with 'The process in brief', then the plots with their statistics" width="80%"></a></p>

## Supported formats

| Data | Files | Notes |
|---|---|---|
| Tables | `.csv` / text, `.parquet`, `.h5` / `.hdf5` | the time column found by itself; in CSV and Parquet you can choose another |
| MATLAB / Simulink | `.mat` (v5 and v7.3) | |
| CAN | candump, Vector `.asc`, CAN tables in CSV + `.dbc` | |
| Flight logs | ArduPilot `.bin`, MAVLink `.tlog`, PX4 `.ulg` | automatic health check; live MAVLink |
| Robotics | ROS 2 / Foxglove `.mcap` | no ROS installation needed |
| Binary packets | a layout (ICD) you describe | |
| Anything else | a Python reader of a few lines | `signalviewer-cli readers --example` writes one to start from |

`pip install signalviewer` reads all of them; `signalviewer-lite` is the core, with extras for the rest
([install](https://github.com/DavidAlpert11/SignalViewer/blob/v1.30.0/docs/install.md)).

## In scripts and CI

```python
import signalviewer as sv
rec = sv.load("examples/bench/pump_run_07.parquet")   # any supported format
t, p = rec.signal("Pressure")                          # numpy arrays; the unit may be left out of the name
df = rec.to_dataframe(["Pressure", "MotorTemp"], t0=100, t1=500)
```

```bash
signalviewer-cli check   runs/*.parquet --checks checks.json --junit results.xml   # limits, per phase
signalviewer-cli compare golden.csv runs/*.csv --tol-pct 2                          # against a golden run
signalviewer-cli validate                                                           # 29 passed, 0 failed
```

Exit codes and JUnit XML for CI; also export, a Sweeps table from a folder of recordings and a sweep's answer.
[Command line and Python](https://davidalpert11.github.io/SignalViewer/command-line/)

## Numbers you can trust

- Every computation is checked against an independent reference – [29 validation cases](https://github.com/DavidAlpert11/SignalViewer/blob/v1.30.0/docs/validation.md)
  with expected and measured values; run them yourself with `signalviewer-cli validate`.
- Numbers – counts, statistics, checks, exports – are always computed on all the data, never on what is drawn.
- Raw data is never changed: derived signals, offsets and alignments are recorded and undoable.
- Formulas run through a whitelist, never `eval`. The app listens on `127.0.0.1` only.
- What it does not do yet is written down: [known limitations](https://github.com/DavidAlpert11/SignalViewer/blob/v1.30.0/docs/limitations.md).

## Where it fits

| You mostly… | Also used | What Signal Viewer adds |
|---|---|---|
| stream ROS topics live | PlotJuggler, Foxglove | recorded runs compared and judged, pass / fail in CI, offline reports |
| work in MATLAB / Simulink | Simulation Data Inspector | no licence; test data, logs and CAN beside the `.mat`; sweeps of runs |
| review one flight log online | UAV Log Viewer, PX4 Flight Review | offline, many runs side by side, a folder of logs at once, your own limits |

## Documentation

[User guide](https://davidalpert11.github.io/SignalViewer/GUIDE/) ·
[Everything it does](https://github.com/DavidAlpert11/SignalViewer/blob/v1.30.0/docs/features.md) ·
[Install and build](https://github.com/DavidAlpert11/SignalViewer/blob/v1.30.0/docs/install.md) ·
[Command line and Python](https://github.com/DavidAlpert11/SignalViewer/blob/v1.30.0/docs/command-line.md) ·
[Validation](https://github.com/DavidAlpert11/SignalViewer/blob/v1.30.0/docs/validation.md) ·
[Known limitations](https://github.com/DavidAlpert11/SignalViewer/blob/v1.30.0/docs/limitations.md) ·
[What's new](https://github.com/DavidAlpert11/SignalViewer/blob/v1.30.0/CHANGELOG.md) ·
🎓 [Training film, nine short chapters](https://github.com/DavidAlpert11/SignalViewer/blob/v1.30.0/docs/media/training.mp4)

## בעברית בקצרה

<div dir="rtl">

**Signal Viewer** – סביבת עבודה הנדסית לניתוח ואימות של נתוני מדידה וסדרות זמן מכל מקור: ניסויי טיסה, רכב וספסל, פלט סימולציות, ROS 2 ו־CAN, וסריקות פרמטרים. הכול על המחשב שלכם, בלי חשבון ובלי אינטרנט.

- **מוצאים מה השתבש:** שני סמנים סביב הרגע ו*מה השתנה?* – מה זז ראשון ומי הוביל את מי.
- **שופטים ריצה:** מגבלות, טולרנסים מול ריצת ייחוס ואיכות נתונים – פסיקה אחת לכל קובץ, ואותן בדיקות גם ב־CI.
- **בוחרים פרמטרים (Sweeps):** אילו סטים עומדים בכל תרחיש, סט אחד לכמה מערכות, ולולאה שמריצה את הקוד שלכם עד התכנסות.
- **אף נקודה לא נעלמת:** המספרים תמיד על כל הנתונים, והגרף מוקטן רק כך שכל קפיצה עדיין מצוירת.
- **מפה ותלת־ממד:** תצלומי לוויין או מפה לא מקוונת, מעל פני השטח האמיתיים – הרגע של הסמן על המסלול ובכל הגרפים יחד.
- **שולחים את התשובה:** דוח HTML אחד שנפתח ב"התהליך בקצרה", וגם PDF ו־Word, או גרף ולשונית חיים בתוך דף Confluence. תיקייה של הקלטות – טבלה אחת, שורה לכל הקלטה.

**התקנה:** מ־[השחרור האחרון](https://github.com/DavidAlpert11/SignalViewer/releases/latest) (Windows, Linux, macOS), או <code dir="ltr">pip install signalviewer</code>. **מדריך:** [docs/GUIDE.he.md](https://github.com/DavidAlpert11/SignalViewer/blob/v1.30.0/docs/GUIDE.he.md).

</div>

## Contributing

Bug reports with a file that shows the problem, readers for new formats and pull requests are welcome – see
[CONTRIBUTING.md](https://github.com/DavidAlpert11/SignalViewer/blob/v1.30.0/CONTRIBUTING.md). Security issues: [SECURITY.md](https://github.com/DavidAlpert11/SignalViewer/blob/v1.30.0/SECURITY.md).

## Citation

If you use Signal Viewer in published work, please cite it – GitHub's *Cite this repository* reads
[CITATION.cff](https://github.com/DavidAlpert11/SignalViewer/blob/v1.30.0/CITATION.cff).

## License

[MIT](https://github.com/DavidAlpert11/SignalViewer/blob/v1.30.0/LICENSE) – free to use, change and ship, also commercially. Third-party parts keep their own licences:
uPlot (MIT), three.js (MIT), the report fonts (SIL OFL), CesiumJS (Apache-2.0), map data from OpenStreetMap
(ODbL), Natural Earth and the AWS Terrain Tiles; the satellite photos are Esri's, fetched only when you choose
them ([details](https://github.com/DavidAlpert11/SignalViewer/blob/v1.30.0/docs/maps-and-3d.md#offline-map-data)).
