Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add py_to_r converter for anndata.abc._AbstractCSDataset #34

Merged
merged 4 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Ignore python warnings when running tests
  • Loading branch information
rcannood committed Nov 15, 2024
commit 374a6ae6007e43fc070968535ba637ca45dbfb31
6 changes: 4 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# anndata 0.7.5.6

* BUG FIX: Use the right interface for the `all.equal()` function.
* BUG FIX: Use the right interface for the `all.equal()` function (PR #32).

* BUG FIX: Add `py_to_r` converter for `anndata.abc._AbstractCSDataset` (PR #xxx).
* BUG FIX: Add `py_to_r` converter for `anndata.abc._AbstractCSDataset` (PR #34).

* MINOR CHANGES: Ignore python warnings when running tests (PR #34).

# anndata 0.7.5.5

Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test-anndata.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ context("testing AnnData")

skip_if_no_anndata()

warnings <- reticulate::import("warnings")
warnings$filterwarnings("ignore")

ad <- AnnData(
X = matrix(0:5, nrow = 2),
obs = data.frame(group = c("a", "b"), row.names = c("s1", "s2")),
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-backed_sparse.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ context("testing backed mode")

skip_if_no_anndata()

warnings <- reticulate::import("warnings")
warnings$filterwarnings("ignore")

test_that("backed indexing", {
tmp_path <- tempfile()
Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test-base.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ context("testing the base functionality")

skip_if_no_anndata()

warnings <- reticulate::import("warnings")
warnings$filterwarnings("ignore")

# some test objects that we use below
adata_dense <- AnnData(rbind(c(1, 2), c(3, 4)))
adata_dense$layers["test"] <- adata_dense$X
Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test-concat.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ context("testing concat()")

skip_if_no_anndata()

warnings <- reticulate::import("warnings")
warnings$filterwarnings("ignore")

a <- AnnData(
X = matrix(c(0, 1, 2, 3), nrow = 2, byrow = TRUE),
obs = data.frame(group = c("a", "b"), row.names = c("s1", "s2")),
Expand Down
Loading