{"action":"created","issue":{"url":"https://api.github.com/repos/NeurodataWithoutBorders/matnwb/issues/36","repository_url":"https://api.github.com/repos/NeurodataWithoutBorders/matnwb","labels_url":"https://api.github.com/repos/NeurodataWithoutBorders/matnwb/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/NeurodataWithoutBorders/matnwb/issues/36/comments","events_url":"https://api.github.com/repos/NeurodataWithoutBorders/matnwb/issues/36/events","html_url":"https://github.com/NeurodataWithoutBorders/matnwb/issues/36","id":338366484,"node_id":"MDU6SXNzdWUzMzgzNjY0ODQ=","number":36,"title":"cannot read UnitTimes","user":{"login":"bendichter","id":844306,"node_id":"MDQ6VXNlcjg0NDMwNg==","avatar_url":"https://avatars0.githubusercontent.com/u/844306?v=4","gravatar_id":"","url":"https://api.github.com/users/bendichter","html_url":"https://github.com/bendichter","followers_url":"https://api.github.com/users/bendichter/followers","following_url":"https://api.github.com/users/bendichter/following{/other_user}","gists_url":"https://api.github.com/users/bendichter/gists{/gist_id}","starred_url":"https://api.github.com/users/bendichter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendichter/subscriptions","organizations_url":"https://api.github.com/users/bendichter/orgs","repos_url":"https://api.github.com/users/bendichter/repos","events_url":"https://api.github.com/users/bendichter/events{/privacy}","received_events_url":"https://api.github.com/users/bendichter/received_events","type":"User","site_admin":false},"labels":[{"id":742488770,"node_id":"MDU6TGFiZWw3NDI0ODg3NzA=","url":"https://api.github.com/repos/NeurodataWithoutBorders/matnwb/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":{"login":"ln-vidrio","id":33462079,"node_id":"MDQ6VXNlcjMzNDYyMDc5","avatar_url":"https://avatars1.githubusercontent.com/u/33462079?v=4","gravatar_id":"","url":"https://api.github.com/users/ln-vidrio","html_url":"https://github.com/ln-vidrio","followers_url":"https://api.github.com/users/ln-vidrio/followers","following_url":"https://api.github.com/users/ln-vidrio/following{/other_user}","gists_url":"https://api.github.com/users/ln-vidrio/gists{/gist_id}","starred_url":"https://api.github.com/users/ln-vidrio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ln-vidrio/subscriptions","organizations_url":"https://api.github.com/users/ln-vidrio/orgs","repos_url":"https://api.github.com/users/ln-vidrio/repos","events_url":"https://api.github.com/users/ln-vidrio/events{/privacy}","received_events_url":"https://api.github.com/users/ln-vidrio/received_events","type":"User","site_admin":false},"assignees":[{"login":"ln-vidrio","id":33462079,"node_id":"MDQ6VXNlcjMzNDYyMDc5","avatar_url":"https://avatars1.githubusercontent.com/u/33462079?v=4","gravatar_id":"","url":"https://api.github.com/users/ln-vidrio","html_url":"https://github.com/ln-vidrio","followers_url":"https://api.github.com/users/ln-vidrio/followers","following_url":"https://api.github.com/users/ln-vidrio/following{/other_user}","gists_url":"https://api.github.com/users/ln-vidrio/gists{/gist_id}","starred_url":"https://api.github.com/users/ln-vidrio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ln-vidrio/subscriptions","organizations_url":"https://api.github.com/users/ln-vidrio/orgs","repos_url":"https://api.github.com/users/ln-vidrio/repos","events_url":"https://api.github.com/users/ln-vidrio/events{/privacy}","received_events_url":"https://api.github.com/users/ln-vidrio/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2018-07-04T20:02:45Z","updated_at":"2018-07-19T22:16:47Z","closed_at":"2018-07-19T22:16:47Z","author_association":"CONTRIBUTOR","body":"I am having trouble reading the `UnitTimes` datatype. Specifically, when I try to import data with `UnitTimes`, I get the following error:\r\n\r\n```\r\n>> nwb=nwbRead('/Users/bendichter/Desktop/Buzsaki/SenzaiBuzsaki2017/test.nwb');\r\n```\r\n\r\n```\r\nError using hdf5lib2\r\nIncorrect number of uint8 values passed in\r\nreference parameter.\r\n\r\nError in H5R.get_name (line 34)\r\nname = H5ML.hdf5lib2('H5Rget_name', loc_id,\r\nref_type, ref, useUtf8);\r\n\r\nError in io.parseReference (line 7)\r\ntarget = H5R.get_name(did, reftype, data);\r\n\r\nError in io.parseDataset (line 24)\r\n    data = io.parseReference(did, tid,\r\n    H5D.read(did));\r\n\r\nError in io.parseGroup (line 14)\r\n    ds = io.parseDataset(filename, ds_info,\r\n    fp);\r\n\r\nError in io.parseGroup (line 26)\r\n    subg = io.parseGroup(filename, g_info);\r\n\r\nError in io.parseGroup (line 26)\r\n    subg = io.parseGroup(filename, g_info);\r\n\r\nError in io.parseGroup (line 26)\r\n    subg = io.parseGroup(filename, g_info);\r\n\r\nError in nwbRead (line 20)\r\nnwb = io.parseGroup(filename, info);\r\n```\r\n\r\nI have tracked this down to an error building the `spike_times_index` component of `UnitTimes`, which is a list of range references. This is data written using `pynwb`. Could this be due to the switch of dimensions mentioned in the README? I'll try to replicate the error using a file written in `matnwb` as well."},"comment":{"url":"https://api.github.com/repos/NeurodataWithoutBorders/matnwb/issues/comments/406431374","html_url":"https://github.com/NeurodataWithoutBorders/matnwb/issues/36#issuecomment-406431374","issue_url":"https://api.github.com/repos/NeurodataWithoutBorders/matnwb/issues/36","id":406431374,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjQzMTM3NA==","user":{"login":"bendichter","id":844306,"node_id":"MDQ6VXNlcjg0NDMwNg==","avatar_url":"https://avatars0.githubusercontent.com/u/844306?v=4","gravatar_id":"","url":"https://api.github.com/users/bendichter","html_url":"https://github.com/bendichter","followers_url":"https://api.github.com/users/bendichter/followers","following_url":"https://api.github.com/users/bendichter/following{/other_user}","gists_url":"https://api.github.com/users/bendichter/gists{/gist_id}","starred_url":"https://api.github.com/users/bendichter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendichter/subscriptions","organizations_url":"https://api.github.com/users/bendichter/orgs","repos_url":"https://api.github.com/users/bendichter/repos","events_url":"https://api.github.com/users/bendichter/events{/privacy}","received_events_url":"https://api.github.com/users/bendichter/received_events","type":"User","site_admin":false},"created_at":"2018-07-19T22:16:47Z","updated_at":"2018-07-19T22:16:47Z","author_association":"CONTRIBUTOR","body":"Works!\r\n\r\n```\r\n>> nwb=nwbRead('test.nwb')\r\n>> spikes = nwb.processing.get('cellular').nwbdatainterface.get('UnitTimes').spike_times_index.data(1).refresh(nwb);\r\n>> spikes(1:10)\r\n\r\nans =\r\n\r\n    2.7670\r\n    4.6878\r\n    5.0803\r\n    5.3623\r\n    5.6367\r\n    5.7636\r\n    5.7712\r\n    5.9959\r\n    6.6608\r\n    7.0330\r\n```"}}
{"actor":{"display_login":"bendichter"}}