{"action":"created","issue":{"url":"https://api.github.com/repos/MIT-LCP/wfdb-python/issues/66","repository_url":"https://api.github.com/repos/MIT-LCP/wfdb-python","labels_url":"https://api.github.com/repos/MIT-LCP/wfdb-python/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/MIT-LCP/wfdb-python/issues/66/comments","events_url":"https://api.github.com/repos/MIT-LCP/wfdb-python/issues/66/events","html_url":"https://github.com/MIT-LCP/wfdb-python/issues/66","id":246061747,"number":66,"title":"Error when loading 'f2o01' from database 'fantasia'","user":{"login":"Gijom","id":9466648,"avatar_url":"https://avatars0.githubusercontent.com/u/9466648?v=4","gravatar_id":"","url":"https://api.github.com/users/Gijom","html_url":"https://github.com/Gijom","followers_url":"https://api.github.com/users/Gijom/followers","following_url":"https://api.github.com/users/Gijom/following{/other_user}","gists_url":"https://api.github.com/users/Gijom/gists{/gist_id}","starred_url":"https://api.github.com/users/Gijom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gijom/subscriptions","organizations_url":"https://api.github.com/users/Gijom/orgs","repos_url":"https://api.github.com/users/Gijom/repos","events_url":"https://api.github.com/users/Gijom/events{/privacy}","received_events_url":"https://api.github.com/users/Gijom/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"cx1111","id":15635926,"avatar_url":"https://avatars3.githubusercontent.com/u/15635926?v=4","gravatar_id":"","url":"https://api.github.com/users/cx1111","html_url":"https://github.com/cx1111","followers_url":"https://api.github.com/users/cx1111/followers","following_url":"https://api.github.com/users/cx1111/following{/other_user}","gists_url":"https://api.github.com/users/cx1111/gists{/gist_id}","starred_url":"https://api.github.com/users/cx1111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cx1111/subscriptions","organizations_url":"https://api.github.com/users/cx1111/orgs","repos_url":"https://api.github.com/users/cx1111/repos","events_url":"https://api.github.com/users/cx1111/events{/privacy}","received_events_url":"https://api.github.com/users/cx1111/received_events","type":"User","site_admin":false},"assignees":[{"login":"cx1111","id":15635926,"avatar_url":"https://avatars3.githubusercontent.com/u/15635926?v=4","gravatar_id":"","url":"https://api.github.com/users/cx1111","html_url":"https://github.com/cx1111","followers_url":"https://api.github.com/users/cx1111/followers","following_url":"https://api.github.com/users/cx1111/following{/other_user}","gists_url":"https://api.github.com/users/cx1111/gists{/gist_id}","starred_url":"https://api.github.com/users/cx1111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cx1111/subscriptions","organizations_url":"https://api.github.com/users/cx1111/orgs","repos_url":"https://api.github.com/users/cx1111/repos","events_url":"https://api.github.com/users/cx1111/events{/privacy}","received_events_url":"https://api.github.com/users/cx1111/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2017-07-27T14:38:01Z","updated_at":"2017-08-14T16:06:10Z","closed_at":"2017-07-27T16:36:36Z","body":"Hello,\r\n\r\nwhen using the command\r\n`signals, fields = wfdb.srdsamp('f2o01', pbdir='fantasia')`\r\n\r\nI get the error\r\n```\r\nFile \"C:\\Users\\XXX\\AppData\\Local\\Continuum\\Miniconda2\\lib\\site-packages\\wfdb\\readwrite\\_signals.py\", line 841, in bytes2samples\r\n    sig[0::2] = sigbytes[0::3] + 256 * np.bitwise_and(sigbytes[1::3], 0x0f)\r\n\r\nValueError: operands could not be broadcast together with shapes (2629214,) (2629213,)\r\n```\r\n\r\nIndeed the line above is reached while sigbytes is of even length and in this case sigbytes[1::3] will be of odd length while sig[0::3] will be of even length. This does not match. Not sure what is going on and why it occurs only for this file."},"comment":{"url":"https://api.github.com/repos/MIT-LCP/wfdb-python/issues/comments/322232809","html_url":"https://github.com/MIT-LCP/wfdb-python/issues/66#issuecomment-322232809","issue_url":"https://api.github.com/repos/MIT-LCP/wfdb-python/issues/66","id":322232809,"user":{"login":"Gijom","id":9466648,"avatar_url":"https://avatars0.githubusercontent.com/u/9466648?v=4","gravatar_id":"","url":"https://api.github.com/users/Gijom","html_url":"https://github.com/Gijom","followers_url":"https://api.github.com/users/Gijom/followers","following_url":"https://api.github.com/users/Gijom/following{/other_user}","gists_url":"https://api.github.com/users/Gijom/gists{/gist_id}","starred_url":"https://api.github.com/users/Gijom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gijom/subscriptions","organizations_url":"https://api.github.com/users/Gijom/orgs","repos_url":"https://api.github.com/users/Gijom/repos","events_url":"https://api.github.com/users/Gijom/events{/privacy}","received_events_url":"https://api.github.com/users/Gijom/received_events","type":"User","site_admin":false},"created_at":"2017-08-14T16:06:10Z","updated_at":"2017-08-14T16:06:10Z","body":"Thanks for your help. I will check them soon. You will hear from me only in case of trouble. Thanks again."}}
{"actor":{"display_login":"Gijom"}}