{"action":"created","issue":{"url":"https://api.github.com/repos/eddelbuettel/rcppcnpy/issues/13","repository_url":"https://api.github.com/repos/eddelbuettel/rcppcnpy","labels_url":"https://api.github.com/repos/eddelbuettel/rcppcnpy/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/eddelbuettel/rcppcnpy/issues/13/comments","events_url":"https://api.github.com/repos/eddelbuettel/rcppcnpy/issues/13/events","html_url":"https://github.com/eddelbuettel/rcppcnpy/pull/13","id":230252189,"number":13,"title":"Proof of concept: Add support for 1 byte arrays","user":{"login":"jmarshallnz","id":406571,"avatar_url":"https://avatars2.githubusercontent.com/u/406571?v=3","gravatar_id":"","url":"https://api.github.com/users/jmarshallnz","html_url":"https://github.com/jmarshallnz","followers_url":"https://api.github.com/users/jmarshallnz/followers","following_url":"https://api.github.com/users/jmarshallnz/following{/other_user}","gists_url":"https://api.github.com/users/jmarshallnz/gists{/gist_id}","starred_url":"https://api.github.com/users/jmarshallnz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmarshallnz/subscriptions","organizations_url":"https://api.github.com/users/jmarshallnz/orgs","repos_url":"https://api.github.com/users/jmarshallnz/repos","events_url":"https://api.github.com/users/jmarshallnz/events{/privacy}","received_events_url":"https://api.github.com/users/jmarshallnz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-21T22:04:08Z","updated_at":"2017-05-21T22:52:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/eddelbuettel/rcppcnpy/pulls/13","html_url":"https://github.com/eddelbuettel/rcppcnpy/pull/13","diff_url":"https://github.com/eddelbuettel/rcppcnpy/pull/13.diff","patch_url":"https://github.com/eddelbuettel/rcppcnpy/pull/13.patch"},"body":"Currently rcppcnpy assumes arrays are 8bytes (double or int64_t). However, cnpy knows this, so we should use it.\r\n\r\nThis is just a proof of concept as to a potential solution for the matrix case. If you'd like me to continue working on it, I'm happy to generalise.\r\n\r\nExample npy's would be the ones from google sketch:\r\n\r\nhttps://console.cloud.google.com/storage/browser/quickdraw_dataset/full/numpy_bitmap?pli=1\r\n\r\nThey're all 1 byte arrays (size n*784). My guess is they're supposed to be unsigned - ATM I'm assuming signed which is probably wrong. Again, I'm happy to look into it if you feel this is something worth having: the information on data type is in the npy file.\r\n\r\nNotice that I'm ignoring the `type` parameter. I'd propose that this is always ignored as we know the type from the npy file, and should just generate the appropriate R type to suit.\r\n\r\n(We could also probably get rid of the dotranspose parameter, though I can see the argument for leaving it in for efficiency)"},"comment":{"url":"https://api.github.com/repos/eddelbuettel/rcppcnpy/issues/comments/302968885","html_url":"https://github.com/eddelbuettel/rcppcnpy/pull/13#issuecomment-302968885","issue_url":"https://api.github.com/repos/eddelbuettel/rcppcnpy/issues/13","id":302968885,"user":{"login":"eddelbuettel","id":673121,"avatar_url":"https://avatars2.githubusercontent.com/u/673121?v=3","gravatar_id":"","url":"https://api.github.com/users/eddelbuettel","html_url":"https://github.com/eddelbuettel","followers_url":"https://api.github.com/users/eddelbuettel/followers","following_url":"https://api.github.com/users/eddelbuettel/following{/other_user}","gists_url":"https://api.github.com/users/eddelbuettel/gists{/gist_id}","starred_url":"https://api.github.com/users/eddelbuettel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddelbuettel/subscriptions","organizations_url":"https://api.github.com/users/eddelbuettel/orgs","repos_url":"https://api.github.com/users/eddelbuettel/repos","events_url":"https://api.github.com/users/eddelbuettel/events{/privacy}","received_events_url":"https://api.github.com/users/eddelbuettel/received_events","type":"User","site_admin":false},"created_at":"2017-05-21T22:52:18Z","updated_at":"2017-05-21T22:52:18Z","body":"Could you augment with a bit of Python to generate some data and write it to file, and maybe also read it back from file so that we can ensure R didn't \"change\" it?  Ideally we want a flow where Python writes, R reads and writes and Python reads it back -- without accidental losses."}}
{"actor":{"display_login":"eddelbuettel"}}