Skip to the content.

Per-version configs (tests/crossversion/confs/<version>/<case>.conf)

The old binaries do not parse the current SI tests/accuracy/*.conf files unmodified — see tests/crossversion/README.md and tests/crossversion/binaries.toml. Each historical version needs its own config per case, kept here.

Unit convention (v1.5, v2.0 — verified against src/parameters.cpp at both commits)

v1.5 and v2.0 share this convention (confirmed identical scale_from_stu handling in parameters.cpp at both commits) — a new version’s conf should re-verify against its own parameters.cpp/scheme.cpp before assuming it.

What’s covered

Two cases have per-version confs today: free_diffusion and the single cylinder (native list + capped PLY). A case earns a historical conf only when two things line up:

  1. Units (above) — mechanical, same fix for every case.
  2. Feature existence — v1.5/v2.0 are 2016–2018-era commits; plenty of current tests/accuracy/*.conf features postdate them entirely (gamma packing generators, per-obstacle d_intra/T2/permeability lists, subdivisions, mesh compartments, the modern permeability model). Those configs have no historical equivalent to run.

Single cylinder

The scale question the earlier draft flagged is now resolved by the reference confs that script_comparing_3v.py actually runs (one_cylinder_v1p5.conf, one_cylinder_z_axis_1p5.txt, one_cylinder_ply_v2p0.conf):

v2.2

No v2.2 entry: that line is the current code (VERSION_ID went 2.1.1.beta → 2.1.2.beta → 2.1.3.beta → 2.3.x). If a specific commit should stand in for “v2.2”, add it to KNOWN_COMMITS in tests/tools/build_old_version.py and a tests/crossversion/confs/v2.2/ directory following this same pattern.

Adding a new case

  1. Confirm the feature existed at that commit (git show <commit>:src/*.cpp).
  2. Convert the current SI conf: apply scale_from_stu 1, convert voxel/obstacle geometry to mm, verify against that commit’s parameters.cpp rather than assuming this file’s rules hold unchanged.
  3. Drop it at tests/crossversion/confs/<version>/<case>.conf.
  4. Freeze it: `python3 tests/tools/gen_reference.py –version --config tests/crossversion/confs//.conf --seed --num-process --case ` (builds the binary automatically on first use).