From 72ff92126cdf5db7fcb1640d242d4e9f61db6aec Mon Sep 17 00:00:00 2001 From: maxime Date: Wed, 18 Nov 2026 13:56:09 +0100 Subject: [PATCH] improve: S1 GUIDE.md: ranges.py --labels F (already in the script since f5ff319) documented in the synopsis and the options Co-Authored-By: Claude Opus 5.5 --- GUIDE.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GUIDE.md b/GUIDE.md index 3bed7a9..64d4f89 100644 --- a/GUIDE.md +++ b/GUIDE.md @@ -98,7 +98,7 @@ Reading, in this order: ### ranges ``` -python3 tools/scripts/ranges.py [--columns error_value,corr_x,corr_y] [--k 5] [--merge 1h] [--min-measurements 1] [--outside T1/T2] [--rolling N|DURATION] [--instants N] [--sensors A,B] [--start T] [--end T] +python3 tools/scripts/ranges.py [--columns error_value,corr_x,corr_y] [--k 5] [--merge 1h] [--min-measurements 1] [--outside T1/T2] [--rolling N|DURATION] [--instants N] [--labels F] [--sensors A,B] [--start T] [--end T] ``` Dates the start and the end of a sensor's moment without rerunning ten tables. By column and by sensor, at the measurements (native step, never averaged): level (median of the window), own noise, **largest jump** from one measurement to the next (value, in noises, the two instants; `(rejected: …)` when one end is); then the **ranges** where the sensor deviates from its level by more than `--k` noises: start, end, number of measurements, extreme (signed, in units and in noises) and its instant. Two ranges of the same sign less than `--merge` apart make one; rejected measurements do not cut a range; column `rejected`: how many of the range's measurements are (and `rejected extreme`). A range that touches the edge of the window is dated at the edge. @@ -106,6 +106,7 @@ Dates the start and the end of a sensor's moment without rerunning ten tables. B - `--min-measurements N`: only the ranges of at least N measurements (and how many out of the total). Over several days, the one-step ranges number in the hundreds and drown the long steps: first `--min-measurements 6`, then without. - `--rolling N` (N measurements on each side) or `--rolling 1d` (the measurements within a duration): the level of each measurement is the median of its neighbours, without it; a long drift or a step follows this local level, only the deviations shorter than the window remain (the level column and the noise do not change; with `--outside`, only the noise is computed outside the episode). - `--instants N`: at the end, the instants where at least N sensors are out of level on one of the columns, with each sensor and its signed deviation in noises (`cx` corr_x, `cy` corr_y, `ev` error_value), the sensors rejected at that instant (among `--sensors`: removing the always-rejected sensors lightens the list), and each reference: `error_value` (`r` if rejected) / inlier. +- `--labels F` (one JSON per line, `start`, `end`, `family`, `id`; numbered in the order of the file): each line of `--instants` ends with the numbers of the labels that cover the instant (`labels: none`); then, per label, the measurements strictly inside it (a measurement at a bound is the point before or after), the largest deviation inside from the level (sensor, column, in noises, instant) and the number of instants inside beyond `--k` noises. - When the batch has a long drift or several steps (the ranges number in the hundreds, or one half of the batch is "out of level"), rerun with `--rolling` (a few measurements, or a few hours to a day depending on the cadence) and `--instants 2`: the brief deviations under the drift come out alone, and the list per instant says which sensors deviate together, which are rejected and what the references do; a deviation of all the targets with the references at the same instant is read against the camera pose. A noise of `0` (and "-" in noises, no range): the values are constant to rounding (deviations below 1e-9), like the `corr` of the references when the compensation retains only two (see Conventions); the same in `overview.py --residuals` and `days.py`.