Clean the journal curves, unfold its timeline and sort it in batches (D-056)
Plan points 18 to 26, 30, 39, 40 and the point 37 housekeeping: - greyed zones per target, vertical scale without the zones to ignore, Fit all, mm by default with a px switch, Support view, Expand (one row per category); - cleaned curves: cut in the zones to ignore, raw data kept there in thin grey; - target02 to target05 count as targets; smoothing questions answered; - categories.py sorts in slices with 3 days of history by default; - the pumping script points to ~/monitoring-dashboard and skips diff images; - CLAUDE.md back under 200 lines; a case page is named after its case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
86547f089b
commit
955566d86f
14 files changed
+303
-98
No files matched your search
+3
-2
@@ -17,7 +17,8 @@ if importlib.util.find_spec("plotly") is None and VENV.exists():
|
||||
|
||||
# Plotly ne recale pas l'ordonnée sur la plage visible : après chaque zoom ou déplacement horizontal,
|
||||
# ce script recalcule l'axe vertical de chaque graphique sur les points visibles (5 % de marge),
|
||||
# seuil compris (c'est une courbe). Double-clic : retour à la vue complète.
|
||||
# seuil compris (c'est une courbe). Double-clic : retour à la vue complète. Une trace peut écarter des points du
|
||||
# recalage (ils restent dessinés) : meta.yskip, un booléen par point (onglet Journal d'Explore : zones grisées).
|
||||
AUTOSCALE_Y_JS = """
|
||||
const gd = document.getElementById('{plot_id}');
|
||||
const name = (t, a) => a + 'axis' + (t[a + 'axis'] || a).slice(1);
|
||||
@@ -37,7 +38,7 @@ gd.on('plotly_relayout', ev => {
|
||||
const [a, b] = xa.range.map(r => xa.r2l(r));
|
||||
const r = box[name(t, 'y')] || (box[name(t, 'y')] = [Infinity, -Infinity]);
|
||||
t.y.forEach((y, j) => {
|
||||
if (y === null || !isFinite(y) || xs[i][j] < a || xs[i][j] > b) return;
|
||||
if (y === null || !isFinite(y) || xs[i][j] < a || xs[i][j] > b || (t.meta && t.meta.yskip && t.meta.yskip[j])) return;
|
||||
r[0] = Math.min(r[0], y);
|
||||
r[1] = Math.max(r[1], y);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user