{"action":"closed","issue":{"url":"https://api.github.com/repos/mne-tools/mne-python/issues/3619","repository_url":"https://api.github.com/repos/mne-tools/mne-python","labels_url":"https://api.github.com/repos/mne-tools/mne-python/issues/3619/labels{/name}","comments_url":"https://api.github.com/repos/mne-tools/mne-python/issues/3619/comments","events_url":"https://api.github.com/repos/mne-tools/mne-python/issues/3619/events","html_url":"https://github.com/mne-tools/mne-python/issues/3619","id":179486932,"number":3619,"title":"realtime (ftclient) example fails to read FieldTrip header","user":{"login":"jjnurminen","id":8491321,"avatar_url":"https://avatars.githubusercontent.com/u/8491321?v=3","gravatar_id":"","url":"https://api.github.com/users/jjnurminen","html_url":"https://github.com/jjnurminen","followers_url":"https://api.github.com/users/jjnurminen/followers","following_url":"https://api.github.com/users/jjnurminen/following{/other_user}","gists_url":"https://api.github.com/users/jjnurminen/gists{/gist_id}","starred_url":"https://api.github.com/users/jjnurminen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjnurminen/subscriptions","organizations_url":"https://api.github.com/users/jjnurminen/orgs","repos_url":"https://api.github.com/users/jjnurminen/repos","events_url":"https://api.github.com/users/jjnurminen/events{/privacy}","received_events_url":"https://api.github.com/users/jjnurminen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-27T13:03:52Z","updated_at":"2016-09-27T13:19:44Z","closed_at":"2016-09-27T13:19:44Z","body":"Hi,\r\nI tried the gallery example `ftclient_rt_compute_psd` with a TRIUX and `neuromag2ft`. It fails with\r\n`ValueError: No channels match the selection.`\r\n\r\nI traced it down to a problem reading the FieldTrip header from the raw data buffer. Here is a minimal example:\r\n\r\n```\r\nfrom mne.externals.FieldTrip import Client as FtClient\r\n\r\nftc = FtClient()\r\nftc.connect('alpha', 1972)\r\nhdr = ftc.getHeader()\r\nftc.disconnect()\r\nprint hdr.labels\r\n```\r\n\r\nIf I run `neuromag2ft` on alpha, start data acquisition and run this example, it will print an empty list, i.e. looks like it cannot read the channel info. Meanwhile in FieldTrip,  I can do `ft_read_header('buffer://alpha:1972')`\r\nand I get the channel labels without any problems.\r\n\r\nCuriously, if I stop the acquisition and start again, `FtClient` also starts to work and provides the correct channel info.\r\n\r\nAny idea?\r\n\r\n"}}
{"actor":{"display_login":"jjnurminen"}}