import json, sys d = sys.argv[1] kept = [] for l in open(f"{d}/work/existing.jsonl"): x = json.loads(l); x.pop("id"); kept.append(x) new = [ {"start": "2026-10-13T20:00Z", "end": "2026-10-14T12:00Z", "family": "Displacement", "description": "In the night of 13 to 14 October, over two measurements, the upper targets COLI20, COLJ19, POUI20 and POUI19 rise together clearly in corr_y, COLI20 also a little in corr_x; COLJ19 and COLI20 are still a little high at the morning measurement, then they are back at noon, POUI19 and COLJ19 only in part, staying a little higher with the slow return of the drift. Their raw positions do not move relative to each other: it is the reference base that shifts slightly against the targets (REFG44N and REFI'21 move apart in x), while the camera tilt takes a small step forward and comes back; the other targets hardly move. No rejection, no image shows anything in front of the targets (thumbnails of 20:00 and 00:00), the housing temperature stays almost flat over the night. According to the expert, BREITHORN, MICHIGAN and NEBRASKA are in the same building: the cameras of MICHIGAN and NEBRASKA take the same small forward tilt step at the same midnight measurement and partly come back at the next one, which points to a cause common to the building rather than to this camera alone. Cause not established; it falls inside the slow return of the camera drift labelled apart, but goes and comes back on its own dates. The immediate return says this is not a movement of the structure: points to ignore, nothing to do."}, {"start": "2026-10-14T04:00Z", "end": "2026-10-14T12:00Z", "family": "Obstruction", "description": "For the duration of one measurement, on 14 October in the morning, several sensors deviate a little together, then return at the next measurement: the reference REFPOU22 rises in corr_y while the references REFG44N and REFI'21 go down, COLH20 and POUI20 rise in corr_x, COLI21 goes down; the error_value of REFG44N and COLH20 rises a little, nothing is rejected, and the camera scale dips for that measurement only, the housing temperature being flat. On the image of 08:00, lit objects (a vehicle or machine, absent at 04:00 and 12:00) appear at the bottom of the scene, behind the references REFI'21, REFH22, REFPOU22 and the bottom targets COLI21, COLI22, POUI24, changing the background around their spots, which stay visible. Seen on the image: the lit background of a passage disturbs the references slightly and the base moves all the targets together. This is not a movement: point to ignore."}, ] with open(f"{d}/labels.jsonl", "w") as f: for x in sorted(kept + new, key=lambda x: (x["start"], x["end"])): f.write(json.dumps(x, ensure_ascii=False) + "\n")