Skip to main content

Documentation for ScryLab v0.1.6

Changelogs

Import Data from Python & MATLAB

ScryLab exposes a REST API at http://localhost:5678 that lets you import signals from Python, MATLAB, or any other environment — see the API reference for all parameters and error codes.

Prerequisite: Is the API reachable?

Make sure ScryLab is running and the API responds before sending data.

Step 1: Get a data source ID

Every signal belongs to a data source. You need its ID before you can send data.

Option A — use an existing data source

Option B — create a new data source

You can also create a new data source from the UI (see Import data sources).

Step 2: Send signals

ScryLab supports two transfer methods:

  1. JSON inline — data directly in the request body
  2. File reference — path to a .npz or .mat file

Performance comparison (1M samples, float64)

MethodPayload sizeParse timeRecommended for
JSON inline~16 MB~500 ms< 50k samples
File reference~4–8 MB~20 ms> 50k samples

Method 1: JSON inline

Pass signal data directly in the request body as arrays.

If no x array is provided, ScryLab automatically generates an integer axis (0, 1, 2, …).

Method 2: File reference

For large signals, save the data to a .npz or .mat file and send only the path. Arrays must be named y, x (and optionally z). Files that the Python client automatically places in ~/.cache/scrylab/transport/ are deleted after import. Paths outside that folder are left untouched.

Linux Flatpak

The ScryLab Flatpak has --filesystem=home — paths under ~/ work. /tmp/ is not shared with the host (sandbox-private). Use ~/.cache/scrylab/transport/ as a temporary location for file references.

Waterfall and Spectrogram

By providing a z field, signals can be displayed with a third dimension.

Waterfall line (1D z-axis)

Not yet implemented

The 1D z-axis is not yet supported, as per-point color coding for line plots is still under development.

A 1D z array of the same length as x and y — each data point receives a color value.

Spectrogram (2D z-matrix)

A 2D matrix z of shape (M, N) with y as the frequency axis (length M) and x as the time axis (length N).