Commit 9b79444
Extra fixes adata layers None after anndata X unification (#1123)
* Fix adata layers None after anndata X unification
* Handle layers[None] (X) correctly in sanitize_table and add test coverage
Skip None when building new_keys so it is never passed to sanitize_name,
and preserve it verbatim in new_dict so the layers setter round-trips X
correctly on anndata >= 0.13 where X lives at layers[None].
Add test_sanitize_table_layers_preserves_x to verify X is intact after
sanitization; the None-in-layers assertion is guarded by a pre-check so
the test is valid on both anndata 0.12.x and >= 0.13.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 824f960 commit 9b79444
2 files changed
Lines changed: 19 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
162 | | - | |
163 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
167 | 183 | | |
168 | 184 | | |
169 | 185 | | |
| |||
0 commit comments