{"action":"opened","issue":{"url":"https://api.github.com/repos/rstudio/reticulate/issues/388","repository_url":"https://api.github.com/repos/rstudio/reticulate","labels_url":"https://api.github.com/repos/rstudio/reticulate/issues/388/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/reticulate/issues/388/comments","events_url":"https://api.github.com/repos/rstudio/reticulate/issues/388/events","html_url":"https://github.com/rstudio/reticulate/issues/388","id":384023878,"node_id":"MDU6SXNzdWUzODQwMjM4Nzg=","number":388,"title":"py_to_r does not convert scipy csr matrix","user":{"login":"scottgigante","id":8499679,"node_id":"MDQ6VXNlcjg0OTk2Nzk=","avatar_url":"https://avatars3.githubusercontent.com/u/8499679?v=4","gravatar_id":"","url":"https://api.github.com/users/scottgigante","html_url":"https://github.com/scottgigante","followers_url":"https://api.github.com/users/scottgigante/followers","following_url":"https://api.github.com/users/scottgigante/following{/other_user}","gists_url":"https://api.github.com/users/scottgigante/gists{/gist_id}","starred_url":"https://api.github.com/users/scottgigante/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottgigante/subscriptions","organizations_url":"https://api.github.com/users/scottgigante/orgs","repos_url":"https://api.github.com/users/scottgigante/repos","events_url":"https://api.github.com/users/scottgigante/events{/privacy}","received_events_url":"https://api.github.com/users/scottgigante/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-24T21:34:38Z","updated_at":"2018-11-24T21:34:38Z","closed_at":null,"author_association":"NONE","body":"`py_to_r` works fine on a `csc` matrix, but not on a `csr` matrix.\r\n```\r\n> N <- 1000\r\n> x <- sparseMatrix(\r\n+     i = sample(N, N),\r\n+     j = sample(N, N),\r\n+     x = runif(N),\r\n+     dims = c(N, N))\r\n> result <- r_to_py(x)\r\n> all(py_to_r(result) == x)\r\n[1] TRUE\r\n> all(py_to_r(result$tocsr()) == x)\r\nError: not-yet-implemented method for ==(<scipy.sparse.csr.csr_matrix>, <dgCMatrix>).\r\n ->>  Ask the package authors to implement the missing feature.\r\n```\r\nPackage reticulate version 1.10.0.9003, scipy 1.1.0, R 3.5.1."}}
{"actor":{"display_login":"scottgigante"}}