Skip to content

Commit

Permalink
fixups from latest CI run
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl committed Oct 15, 2024
1 parent 662dd01 commit ef117ae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apis/python/tests/test_basic_anndata_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ def test_null_obs(conftest_pbmc_small, tmp_path: Path):
seed = 42
# Create column of all null values
conftest_pbmc_small.obs["empty_categorical_all"] = pd.Categorical(
[np.NaN] * conftest_pbmc_small.n_obs,
[np.nan] * conftest_pbmc_small.n_obs,
dtype=pd.CategoricalDtype(categories=[], ordered=False),
)
conftest_pbmc_small.obs["empty_extension_all"] = pd.Series(
Expand All @@ -744,7 +744,7 @@ def test_null_obs(conftest_pbmc_small, tmp_path: Path):
rng = np.random.RandomState(seed)

conftest_pbmc_small.obs["empty_categorical_partial"] = rng.choice(
(np.NaN, 1.0), conftest_pbmc_small.n_obs, True
(np.nan, 1.0), conftest_pbmc_small.n_obs, True
)
conftest_pbmc_small.obs["empty_extension_partial"] = pd.Series(
[1] * conftest_pbmc_small.n_obs + [np.nan], dtype=pd.Int64Dtype()
Expand Down
2 changes: 1 addition & 1 deletion apis/python/tests/test_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ def test_extend_enumerations(tmp_path):
np.array([0, 1.1, 2.1, 0, 1.1, 2.1], dtype=np.float64), dtype="category"
),
"float64_w_non_finite": pd.Series(
np.array([0, 1.1, 2.1, 0, np.Inf, np.NINF], dtype=np.float64),
np.array([0, 1.1, 2.1, 0, np.inf, np.NINF], dtype=np.float64),
dtype="category",
),
"str_ordered": pd.Series(
Expand Down
2 changes: 1 addition & 1 deletion apis/python/tests/test_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def test_nd_dense_non_contiguous_write(tmp_path):
"""Test regression dected in GitHub Issue #2537"""
# Create data.
data = (
np.arange(np.product(24), dtype=np.uint8)
np.arange(np.prod(24), dtype=np.uint8)
.reshape((4, 3, 2))
.transpose((2, 0, 1))
)
Expand Down

0 comments on commit ef117ae

Please sign in to comment.