Data
scalar
Single-channel numeric time-series. One value per timestamp. Use for battery voltage, gripper force, CPU utilization, any 1-D scalar signal.
Chunk format
- Format:
jsonl - Decoder:
jsonlDecoder
JSONL shape
{
ts: number // seconds from episode start
data: number // the scalar value
}| Field | Type | Required | Notes |
|---|---|---|---|
ts | number | yes | Monotonically increasing; may be fractional. |
data | number | yes | The scalar sample value. |
Sample data
{"ts": 0.000, "data": 12.3}
{"ts": 0.100, "data": 12.5}
{"ts": 0.200, "data": 12.4}
{"ts": 0.300, "data": 12.7}Sample m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:5
#EXTINF:5.000,
chunk-001.jsonl
#EXTINF:5.000,
chunk-002.jsonl
#EXT-X-ENDLISTCompatible timeline lanes
| Lane | Notes |
|---|---|
LineChartLane | Default. Single curve. |
Compatible standalone views
| View | Notes |
|---|---|
BarTrackView | Generic N-channel bar display; works with any continuous dtype. |
Default props
None. Specify range or unit via TrackRow.props if needed.
Python generator
import numpy as np
from dreamlake import Episode
ep = Episode.create("ep1")
voltage = ep.track("power/battery_voltage", dtype="scalar")
t = 0.0
while t < 30.0:
v = 12.0 + 0.5 * np.sin(t)
voltage.append({"ts": t, "data": v})
t += 0.01registerDtype override
registerDtype({
id: 'scalar',
name: 'Scalar',
defaults: { range: [0, 100], unit: '%' }, // common for utilization-style scalars
})