{"action":"created","issue":{"url":"https://api.github.com/repos/ratal/mdfreader/issues/21","repository_url":"https://api.github.com/repos/ratal/mdfreader","labels_url":"https://api.github.com/repos/ratal/mdfreader/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/ratal/mdfreader/issues/21/comments","events_url":"https://api.github.com/repos/ratal/mdfreader/issues/21/events","html_url":"https://github.com/ratal/mdfreader/issues/21","id":148331471,"number":21,"title":"MDF4 signalDataType 13","user":{"login":"kkreplin","id":11050258,"avatar_url":"https://avatars.githubusercontent.com/u/11050258?v=3","gravatar_id":"","url":"https://api.github.com/users/kkreplin","html_url":"https://github.com/kkreplin","followers_url":"https://api.github.com/users/kkreplin/followers","following_url":"https://api.github.com/users/kkreplin/following{/other_user}","gists_url":"https://api.github.com/users/kkreplin/gists{/gist_id}","starred_url":"https://api.github.com/users/kkreplin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkreplin/subscriptions","organizations_url":"https://api.github.com/users/kkreplin/orgs","repos_url":"https://api.github.com/users/kkreplin/repos","events_url":"https://api.github.com/users/kkreplin/events{/privacy}","received_events_url":"https://api.github.com/users/kkreplin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-04-14T11:32:18Z","updated_at":"2016-04-25T09:58:33Z","closed_at":null,"body":"When I read in my mf4 data I get the following error:\r\n\r\n```\r\nlib/python2.7/site-packages/mdfreader/mdf4reader.py in read4(self, fileName, info, multiProc, channelList, convertAfterRead, filterChannelNames)\r\n   1303                                             buf[recordID]['data'] is not None: # no data in channel group\r\n   1304                                         if isinstance(buf[recordID]['data'],recarray):\r\n-> 1305                                             temp = buf[recordID]['data'].__getattribute__(convertName(recordName))  # extract channel vector\r\n   1306                                         else:\r\n   1307                                             temp = buf[recordID]['data'][convertName(recordName)]\r\nlib/python2.7/site-packages/numpy/core/records.pyc in __getattribute__(self, attr)\r\n    444             res = fielddict[attr][:2]\r\n    445         except (TypeError, KeyError):\r\n--> 446             raise AttributeError(\"recarray has no attribute %s\" % attr)\r\n    447         obj = self.getfield(*res)\r\n    448 \r\n\r\nAttributeError: recarray has no attribute Analog: Time_abs_title\r\n```\r\n\r\n\r\nIt is caused by having besides a normal entry `Time` with `signalDataType 0` an additional entry `Time_abs` with `signalDataType 13`. The `class recordChannel` in `mdf4reader.py` however doesn't handle this `signalDataType`. When I manually set the `signalDataType` of `Time_abs` to 0 (like `Time`), the data can be read in, however, I get the following error:\r\n\r\n```\r\nlib/python2.7/site-packages/mdfreader/mdf4reader.py in load(self, record, zip, nameList, sortedFlag)\r\n    465             temps['data'] = self.load(record, zip=temps['hl_zip_type'], nameList=nameList, sortedFlag=sortedFlag)\r\n    466         elif temps['id'] in ('##DT', '##RD', b'##DT', b'##RD'):  # normal sorted data block, direct read\r\n--> 467             temps['data'] = record.readSortedRecord(self.fid, self.pointerTodata, channelList=nameList)\r\n    468         elif temps['id'] in ('##SD', b'##SD'):  # VLSD\r\n    469             temps['data'] = self.fid.read(temps['length'] - 24)\r\n\r\nlib/python2.7/site-packages/numpy/core/records.pyc in fromfile(fd, dtype, shape, offset, formats, names, titles, aligned, byteorder)\r\n    781     nbytesread = fd.readinto(_array.data)\r\n    782     if nbytesread != nbytes:\r\n--> 783         raise IOError(\"Didn't read as many bytes as expected\")\r\n    784     if name:\r\n    785         fd.close()\r\n\r\nIOError: Didn't read as many bytes as expected\r\n```\r\nDo you have any suggestion on how to handle the `Time_abs` entry with `signalDataType 13` properly?\r\n\r\nThank you.\r\n"},"comment":{"url":"https://api.github.com/repos/ratal/mdfreader/issues/comments/214242589","html_url":"https://github.com/ratal/mdfreader/issues/21#issuecomment-214242589","issue_url":"https://api.github.com/repos/ratal/mdfreader/issues/21","id":214242589,"user":{"login":"kkreplin","id":11050258,"avatar_url":"https://avatars.githubusercontent.com/u/11050258?v=3","gravatar_id":"","url":"https://api.github.com/users/kkreplin","html_url":"https://github.com/kkreplin","followers_url":"https://api.github.com/users/kkreplin/followers","following_url":"https://api.github.com/users/kkreplin/following{/other_user}","gists_url":"https://api.github.com/users/kkreplin/gists{/gist_id}","starred_url":"https://api.github.com/users/kkreplin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkreplin/subscriptions","organizations_url":"https://api.github.com/users/kkreplin/orgs","repos_url":"https://api.github.com/users/kkreplin/repos","events_url":"https://api.github.com/users/kkreplin/events{/privacy}","received_events_url":"https://api.github.com/users/kkreplin/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T09:58:33Z","updated_at":"2016-04-25T09:58:33Z","body":"Dear Aymeric,\r\n\r\nI tested your solution: it works! Thank you very much for the fix.\r\n\r\nKatharina"}}