Commit 82a6501
committed
maintenance: floor autonerves at the first release carrying the SMALLDAT stamp
The floor was `autonerves>=2026.8.22.1`, which predates the SMALLDAT regime
stamp shipped by PyAutoNerves#153/#154. An autoarray installed from PyPI
therefore resolved an autonerves whose writer emits no card at all:
`should_simulate` saw an absent stamp, read it as "unknown", and fell back to
the shape heuristic — which cannot see capped interferometer datasets, the case
the stamp exists for. The fix was inert for anyone installing rather than
running from a checkout.
`autonerves 2026.8.23.1` is the first release carrying it. Verified by
unpacking both wheels from PyPI rather than inferring from commit dates:
2026.8.22.1 has neither `stamp_small_datasets_regime` nor
`SMALL_DATASETS_HEADER_KEY`, and still writes the `[""]` header comment;
2026.8.23.1 has both and the `""` fix. No release sits between them, so it is
the first. Both floor reasons are now stated in the pin comment — the
JAX-in-base-dependencies requirement (PyAutoLens#687/#702) stays load-bearing
alongside the stamp.
The rationale on the duplicated SMALLDAT literal in `dataset_util.py` was
rewritten because this bump makes its stated reason false — it claimed the
floor named a pre-stamp release, so an import would hard-fail. The duplication
is kept anyway, for a different reason: a floor constrains dependency
resolution only, and an editable checkout or `--no-deps` install can still put
a pre-stamp autonerves on the path. The literal degrades to "card absent" and
falls through to the shape heuristic; an import would be an ImportError at
module load. Silent-safe beats hard-fail.
Both fallbacks (`should_simulate`'s shape heuristic and
`_is_capped_at_the_current_cap`) are untouched — every dataset already on disk
is unstamped and depends on them.
`test_autoarray/structures/arrays/files/array/output_test/array.fits` is
regenerated as a byproduct: it is test output that the suite rmtrees and
rewrites, and the newly-floored autonerves drops the `/ ['']` comment literal
(PyAutoNerves#155). Verified cosmetic — identical cards, values, data and byte
size; only the comment text differs. Leaving it stale would dirty the tree on
every suite run under the new floor.
Closes #482.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent f50d28c commit 82a6501
3 files changed
Lines changed: 29 additions & 9 deletions
File tree
- autoarray/util
- test_autoarray/structures/arrays/files/array/output_test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
15 | 23 | | |
16 | 24 | | |
17 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
31 | 43 | | |
32 | 44 | | |
33 | 45 | | |
| |||
Binary file not shown.
0 commit comments