Part of #149. wave 1 · 0.17.11 · size S **Goal.** What `import array` writes is what anndata reads back. **Owns:** `formats/array.py`, `formats/validate.py` **Approach:** - A new dataframe column is added to `column-order`; a name equal to the index is refused. - `raw/var/<col>` is checked against raw's n_var; a 0-d array for an axis-bound path is refused with the shape it needs. - `validate_dimensions` matches `obs` and `obs/...`, not every key that starts with the letters. **Findings** | Ref | Sev | Finding | Where | |---|---|---|---| | F199 | H | `import array obs/<new>` exits 0 but anndata never shows the column | `formats/array.py:251` | | F200 | M | `import array raw/var/<col>` writes a column of any length | `formats/validate.py:193` | | F201 | L | A 0-d .npy into obsm/varm/obsp fails with 'Error: tuple index out of range' | `formats/validate.py:253` | | F202 | L | validate_dimensions matches bare 'obs'/'var' prefixes: unrelated top-level keys refused | `formats/validate.py:267` | Done when one PR on `fix/b6` closes this, with a regression test against an oracle for every finding, and docs and changelog in the same PR.
Activity