--- /tmp/tj/check/check_r45u3f_a028b118.py 2026-11-15 15:01:54.946384718 +0100 +++ check/chk_orig_tranche.py 2026-11-15 20:39:14.297923277 +0100 @@ -681,14 +681,21 @@ sys.exit(3) A1, QJ, SJ = {}, {}, {} totw = 0 + import os as _os + _SL = _os.environ.get("TRANCHE") + if _SL: + i0, i1 = map(int, _SL.split(":")); items = items[i0:i1] with get_context("fork").Pool(WORKERS) as pool: - for cnt_, tw, out in pool.imap_unordered(orbit_sums_f, items, chunksize=2): + for cnt_, tw, out in pool.imap_unordered(orbit_sums_f, items, chunksize=1): totw += cnt_ * tw for j, vec in out.items(): req(j >= 1) A1[j] = A1.get(j, 0) + cnt_ * int(vec[0]) v = SJ.setdefault(j, [0] * len(divs)) for i in range(len(divs)): v[i] += cnt_ * int(vec[1 + i]) + if _SL: + json.dump(dict(i0=i0, i1=i1, totw=str(totw), A1={str(j): str(x) for j, x in A1.items()}, + SJ={str(j): [str(x) for x in v] for j, v in SJ.items()}), open(_os.environ["SORTIE"], "w")); sys.exit(4) for j in SJ: # v3: exact Q sums from the exact S sums (natural order), then reorder QJ[j] = sum(Bn_nat[k] * SJ[j][k] for k in range(len(divs))) v_ = SJ[j]; SJ[j] = [v_[int(inv_col[i])] for i in range(len(divs))]