{"action":"created","issue":{"url":"https://api.github.com/repos/mila-udem/fuel/issues/221","labels_url":"https://api.github.com/repos/mila-udem/fuel/issues/221/labels{/name}","comments_url":"https://api.github.com/repos/mila-udem/fuel/issues/221/comments","events_url":"https://api.github.com/repos/mila-udem/fuel/issues/221/events","html_url":"https://github.com/mila-udem/fuel/pull/221","id":103284163,"number":221,"title":"Ensure fuel.server works with scalar features by working around a numpy bug","user":{"login":"mjwillson","id":4502,"avatar_url":"https://avatars.githubusercontent.com/u/4502?v=3","gravatar_id":"","url":"https://api.github.com/users/mjwillson","html_url":"https://github.com/mjwillson","followers_url":"https://api.github.com/users/mjwillson/followers","following_url":"https://api.github.com/users/mjwillson/following{/other_user}","gists_url":"https://api.github.com/users/mjwillson/gists{/gist_id}","starred_url":"https://api.github.com/users/mjwillson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjwillson/subscriptions","organizations_url":"https://api.github.com/users/mjwillson/orgs","repos_url":"https://api.github.com/users/mjwillson/repos","events_url":"https://api.github.com/users/mjwillson/events{/privacy}","received_events_url":"https://api.github.com/users/mjwillson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-26T14:33:59Z","updated_at":"2015-09-17T14:43:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mila-udem/fuel/pulls/221","html_url":"https://github.com/mila-udem/fuel/pull/221","diff_url":"https://github.com/mila-udem/fuel/pull/221.diff","patch_url":"https://github.com/mila-udem/fuel/pull/221.patch"},"body":"When using ServerDatastream, scalar features get turned into length-1 vectors.\r\n\r\nI tracked it down to a bug with numpy.ascontiguousarray, which this commit works around: ascontiguousarray makes scalars into arrays (https://github.com/numpy/numpy/issues/5300)\r\n"},"comment":{"url":"https://api.github.com/repos/mila-udem/fuel/issues/comments/141108563","html_url":"https://github.com/mila-udem/fuel/pull/221#issuecomment-141108563","issue_url":"https://api.github.com/repos/mila-udem/fuel/issues/221","id":141108563,"user":{"login":"vdumoulin","id":2034067,"avatar_url":"https://avatars.githubusercontent.com/u/2034067?v=3","gravatar_id":"","url":"https://api.github.com/users/vdumoulin","html_url":"https://github.com/vdumoulin","followers_url":"https://api.github.com/users/vdumoulin/followers","following_url":"https://api.github.com/users/vdumoulin/following{/other_user}","gists_url":"https://api.github.com/users/vdumoulin/gists{/gist_id}","starred_url":"https://api.github.com/users/vdumoulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdumoulin/subscriptions","organizations_url":"https://api.github.com/users/vdumoulin/orgs","repos_url":"https://api.github.com/users/vdumoulin/repos","events_url":"https://api.github.com/users/vdumoulin/events{/privacy}","received_events_url":"https://api.github.com/users/vdumoulin/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T14:43:08Z","updated_at":"2015-09-17T14:43:08Z","body":"Likewise. @mjwillson could you also add a unit test in `fuel/tests/test_server.py` to show exactly how Fuel is currently failing and how your fix solves the issue?"}}