{"action":"opened","issue":{"url":"https://api.github.com/repos/danielhrisca/asammdf/issues/5","repository_url":"https://api.github.com/repos/danielhrisca/asammdf","labels_url":"https://api.github.com/repos/danielhrisca/asammdf/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/danielhrisca/asammdf/issues/5/comments","events_url":"https://api.github.com/repos/danielhrisca/asammdf/issues/5/events","html_url":"https://github.com/danielhrisca/asammdf/issues/5","id":246985362,"number":5,"title":"Cannot get Signal when load_measured_data=False","user":{"login":"JulienGrv","id":6085524,"avatar_url":"https://avatars0.githubusercontent.com/u/6085524?v=4","gravatar_id":"","url":"https://api.github.com/users/JulienGrv","html_url":"https://github.com/JulienGrv","followers_url":"https://api.github.com/users/JulienGrv/followers","following_url":"https://api.github.com/users/JulienGrv/following{/other_user}","gists_url":"https://api.github.com/users/JulienGrv/gists{/gist_id}","starred_url":"https://api.github.com/users/JulienGrv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JulienGrv/subscriptions","organizations_url":"https://api.github.com/users/JulienGrv/orgs","repos_url":"https://api.github.com/users/JulienGrv/repos","events_url":"https://api.github.com/users/JulienGrv/events{/privacy}","received_events_url":"https://api.github.com/users/JulienGrv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-01T07:54:57Z","updated_at":"2017-08-01T07:54:57Z","closed_at":null,"body":"When trying to get a signal of an MDF4 file read with the option load_measured_data=False, the returned signal is a different one and its samples and timestamps are empty.\r\n\r\n```python\r\n>>> import asammdf\r\n>>> mdf = asammdf.MDF('test.MF4', load_measured_data=False)\r\n>>> signal = mdf.get('signal_XXXX')\r\n>>> print(signal)\r\nSignal { name=\"signal_YYYY\":       s=[]    t=[]\r\n        unit=\"\" conversion=None }\r\n```\r\n\r\nI undertook some research and found out in the get method that the if statement on line 726 in mdf4.py does not pass because the ch_data_addr is 0, which should not be 0. So the problem seems to be located near there.\r\n\r\n```python\r\n        [...]\r\n725  ch_data_addr = channel['data_block_addr']\r\n726  if ch_data_addr:\r\n727      file_stream.seek(ch_data_addr, SEEK_START)\r\n            [...]\r\n```"}}
{"actor":{"display_login":"JulienGrv"}}