"""Builds labels.jsonl from work/requalify_input.jsonl: removes, rewrites (review dropped), keeps the rest as is.""" import json D = 'labeling/auto/analyses/NORDEND_2026-09-04T0615_2026-09-17T0545/' REMOVE = {'NORDEND-104', 'NORDEND-115', 'NORDEND-117', 'NORDEND-124'} NEW = { 'NORDEND-95': "In the afternoon, while CTR01 (local reference, treated as a target) drops out at times because the rock around it is in full sun (15:00 thumbnail: the rock as bright as the spot, which drowns in it), the corr_y of PR01 jumps up for one measurement in the middle of the rejections and comes back at once, and PR14 dips a little on corr_x near the end of the episode. The other targets stay within their noise. Not a movement of the structure: points to ignore, nothing to do.", 'NORDEND-109': "In the afternoon, at the first rejection of CTR01 (local reference, treated as a target), PR14 and PR18 jump on corr_x and PR18 drops on corr_y for one measurement, with PR07 and PR17 departing too at that measurement and the next; during the later rejections the corr_y of PR01 stays a little high, then everything comes back. Deduced cause: the sun on the rock around CTR01, same hour and same signature as the other sunny afternoons where the thumbnails show the rock in full sun and the spot drowning in it. The structure does not move: points to ignore, nothing to do.", 'NORDEND-118': "In the afternoon, the corr_x of CTR01 (local reference, treated as a target) plunges for one measurement just before it starts dropping out; during its rejections the corr_y of PR01 rises for two measurements and comes back, and at the last rejection PR09 dips on corr_y for two measurements. Deduced cause: the sun on the rock around CTR01, same hour and same signature as the other sunny afternoons where the thumbnails show the rock in full sun and the spot drowning in it. The structure does not move: points to ignore, nothing to do.", 'NORDEND-120': "In the afternoon, while CTR01 (local reference, treated as a target) drops out almost without interruption, the corr_y of PR01 rises for a few measurements and comes back, PR14 departs a little on corr_x, and at the last rejection PR18 drops on corr_x for one measurement. Deduced cause: the sun on the rock around CTR01, same hour and same signature as the other sunny afternoons where the thumbnails show the rock in full sun and the spot drowning in it. The structure does not move: points to ignore, nothing to do.", 'NORDEND-121': "At night, at the first rejection of PR07, PR08 drops on corr_x for one measurement, then PR15 at the next, both back at once; PR07 then stays rejected for more than an hour, its spot almost invisible on the 02:30 image while its neighbours are sharp. Cobweb threads lit by the infrared cross the field of the targets on those nights (23:00 images on 15 and 16/09): deduced cause, without being seen on the target, a cobweb in front of PR07 that brushes its neighbours as it settles. Points to ignore, this is not a movement.", 'NORDEND-125': "In the afternoon, at two of the three single rejections of CTR01 (local reference, treated as a target), PR13 departs on corr_y for one measurement, up the first time and down the second, and at the last one PR02 dips on corr_y while the references shift slightly together; each comes back at once, the deviations staying just above the noise. Deduced cause: the sun on the rock around CTR01, same hour and same signature as the other sunny afternoons where the thumbnails show the rock in full sun and the spot drowning in it. Points to ignore, nothing to do.", } out = [] for line in open(D + 'work/requalify_input.jsonl'): l = json.loads(line); i = l.pop('id') if i in REMOVE: continue if i in NEW: l['description'] = NEW[i]; l.pop('review', None) out.append(l) with open(D + 'labels.jsonl', 'w') as f: for l in out: f.write(json.dumps(l, ensure_ascii=False) + '\n') print(len(out))