{"action":"created","issue":{"url":"https://api.github.com/repos/ratal/mdfreader/issues/153","repository_url":"https://api.github.com/repos/ratal/mdfreader","labels_url":"https://api.github.com/repos/ratal/mdfreader/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/ratal/mdfreader/issues/153/comments","events_url":"https://api.github.com/repos/ratal/mdfreader/issues/153/events","html_url":"https://github.com/ratal/mdfreader/issues/153","id":362594171,"node_id":"MDU6SXNzdWUzNjI1OTQxNzE=","number":153,"title":"Reading Error Using \"ChannelList\"","user":{"login":"proedig","id":15266176,"node_id":"MDQ6VXNlcjE1MjY2MTc2","avatar_url":"https://avatars1.githubusercontent.com/u/15266176?v=4","gravatar_id":"","url":"https://api.github.com/users/proedig","html_url":"https://github.com/proedig","followers_url":"https://api.github.com/users/proedig/followers","following_url":"https://api.github.com/users/proedig/following{/other_user}","gists_url":"https://api.github.com/users/proedig/gists{/gist_id}","starred_url":"https://api.github.com/users/proedig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/proedig/subscriptions","organizations_url":"https://api.github.com/users/proedig/orgs","repos_url":"https://api.github.com/users/proedig/repos","events_url":"https://api.github.com/users/proedig/events{/privacy}","received_events_url":"https://api.github.com/users/proedig/received_events","type":"User","site_admin":false},"labels":[{"id":777065359,"node_id":"MDU6TGFiZWw3NzcwNjUzNTk=","url":"https://api.github.com/repos/ratal/mdfreader/labels/waiting%20for%20more%20info","name":"waiting for more info","color":"52c9c7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":25,"created_at":"2018-09-21T12:30:57Z","updated_at":"2018-11-01T09:06:09Z","closed_at":null,"author_association":"NONE","body":"# Python version\r\n'3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)]'\r\n\r\n# Platform information\r\n'Windows-10-10.0.14393-SP0'\r\n\r\n# Numpy version\r\n'1.14.3'\r\n\r\n# mdfreader version\r\nmdfreader 2.7.8\r\n\r\n# Description\r\nHi! I have problem with reading in mdffiles using the optional argument \"channellist\". \r\n\r\nWhen I try \r\n\r\n`data = mdfreader.mdf(file)`\r\n\r\nthere is no problem. All channels are read in. When I try the same file with\r\n\r\n`data = mdfreader.mdf(file,channelList=['n'])`\r\n\r\nI get the following output:\r\n\r\n_C:\\ProgramData\\Anaconda3\\lib\\site-packages\\mdfreader\\mdf3reader.py:552: UserWarning: Unexpected error: (<class 'ModuleNotFoundError'>, ModuleNotFoundError(\"No module named 'dataRead'\",), <traceback object at 0x00000258E3768EC8>)\r\n  warn('Unexpected error: {}'.format(exc_info()))\r\nC:\\ProgramData\\Anaconda3\\lib\\site-packages\\mdfreader\\mdf3reader.py:553: UserWarning: dataRead crashed, back to python data reading\r\n  warn('dataRead crashed, back to python data reading')_\r\n\r\nHowever, there is reasonable output:\r\n\r\n_In [29]: data\r\nOut[29]: {'time_2': {'unit': 's',\r\n  'description': '',\r\n  'master': 'time_2',\r\n  'masterType': 1,\r\n  'data': array([5.60005003e-03, ..., 4.75285915e+03])},\r\n 'n': {'unit': 'rpm',\r\n  'description': 'Engine speed',\r\n  'master': 'time_2',\r\n  'masterType': 1,\r\n  'data': array([0, ..., 0], dtype=uint16)}}_\r\n\r\nSo this means for me there is no problem with the variable 'n'. Is it a problem with cython? I have installed cython version 0.28.5.\r\n\r\ndata.MDFVersionNumber = 300\r\n\r\nBest wishes\r\n\r\nPhilip\r\n[package_list.txt](https://github.com/ratal/mdfreader/files/2405301/package_list.txt)\r\n"},"comment":{"url":"https://api.github.com/repos/ratal/mdfreader/issues/comments/434977811","html_url":"https://github.com/ratal/mdfreader/issues/153#issuecomment-434977811","issue_url":"https://api.github.com/repos/ratal/mdfreader/issues/153","id":434977811,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDk3NzgxMQ==","user":{"login":"ratal","id":5404948,"node_id":"MDQ6VXNlcjU0MDQ5NDg=","avatar_url":"https://avatars1.githubusercontent.com/u/5404948?v=4","gravatar_id":"","url":"https://api.github.com/users/ratal","html_url":"https://github.com/ratal","followers_url":"https://api.github.com/users/ratal/followers","following_url":"https://api.github.com/users/ratal/following{/other_user}","gists_url":"https://api.github.com/users/ratal/gists{/gist_id}","starred_url":"https://api.github.com/users/ratal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ratal/subscriptions","organizations_url":"https://api.github.com/users/ratal/orgs","repos_url":"https://api.github.com/users/ratal/repos","events_url":"https://api.github.com/users/ratal/events{/privacy}","received_events_url":"https://api.github.com/users/ratal/received_events","type":"User","site_admin":false},"created_at":"2018-11-01T09:06:09Z","updated_at":"2018-11-01T09:06:09Z","author_association":"OWNER","body":"ok, there is no recordid, not the issue.\r\nI reviewed the dataRead Cython code but could not really find any hint.\r\nI lately introduced new attribute for channels, `bit_masking_needed`. Can you check line 959 in mdf4reader.py if it is False (dataRead shoudl already do bit extraction, no need to redo) ?"}}
{"actor":{"display_login":"ratal"}}