Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 25, 2023
1 parent 5d753a5 commit f2e005b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion anndata/_io/specs/methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ def write_dataframe(f, key, df, _writer, dataset_kwargs=MappingProxyType({})):
# Check arguments
for reserved in ("_index",):
if reserved in df.columns:
raise ValueError(f"{reserved!r} is a reserved name for dataframe columns.")
raise ValueError(f"{reserved!r} is a reserved name for dataframe columns.")
group = _require_group_write_dataframe(f, key, df)
col_names = [check_key(c) for c in df.columns]
group.attrs["column-order"] = col_names
Expand Down
4 changes: 1 addition & 3 deletions anndata/tests/test_readwrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -801,8 +801,6 @@ def test_h5py_attr_limit(tmp_path):
N = 10_000
a = ad.AnnData(np.ones((5, 10)))
a.obsm["df"] = pd.DataFrame(
np.ones((5, N)),
index=a.obs_names,
columns=[str(i) for i in range(N)]
np.ones((5, N)), index=a.obs_names, columns=[str(i) for i in range(N)]
)
a.write(tmp_path / "tmp.h5ad")

0 comments on commit f2e005b

Please sign in to comment.