{"action":"created","issue":{"url":"https://api.github.com/repos/hibtc/cpymad/issues/38","repository_url":"https://api.github.com/repos/hibtc/cpymad","labels_url":"https://api.github.com/repos/hibtc/cpymad/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/hibtc/cpymad/issues/38/comments","events_url":"https://api.github.com/repos/hibtc/cpymad/issues/38/events","html_url":"https://github.com/hibtc/cpymad/issues/38","id":179021119,"number":38,"title":"How to obtain BPM readings?","user":{"login":"cpyman","id":8341044,"avatar_url":"https://avatars.githubusercontent.com/u/8341044?v=3","gravatar_id":"","url":"https://api.github.com/users/cpyman","html_url":"https://github.com/cpyman","followers_url":"https://api.github.com/users/cpyman/followers","following_url":"https://api.github.com/users/cpyman/following{/other_user}","gists_url":"https://api.github.com/users/cpyman/gists{/gist_id}","starred_url":"https://api.github.com/users/cpyman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpyman/subscriptions","organizations_url":"https://api.github.com/users/cpyman/orgs","repos_url":"https://api.github.com/users/cpyman/repos","events_url":"https://api.github.com/users/cpyman/events{/privacy}","received_events_url":"https://api.github.com/users/cpyman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-24T09:27:20Z","updated_at":"2016-09-27T11:55:06Z","closed_at":null,"body":"Hi, Thomas\r\n\r\nHow to get the BPM readings? I write a small code, but it can't work anyway.\r\n```python\r\nfrom cpymad.madx import Madx\r\nmadx = Madx(command_log=\"HIMM_log.madx\")\r\nmadx.command.call(file=\"HIMM_cpymad\")\r\nmadx.command.twiss(sequence=\"himm\")\r\ntwiss0 = madx.get_table(\"twiss\")\r\n#use madx builtin function `table` to get BPM readings\r\nbpm1 = madx.command.table('twiss','bpm12','x')\r\n```"},"comment":{"url":"https://api.github.com/repos/hibtc/cpymad/issues/comments/249843735","html_url":"https://github.com/hibtc/cpymad/issues/38#issuecomment-249843735","issue_url":"https://api.github.com/repos/hibtc/cpymad/issues/38","id":249843735,"user":{"login":"coldfix","id":1816880,"avatar_url":"https://avatars.githubusercontent.com/u/1816880?v=3","gravatar_id":"","url":"https://api.github.com/users/coldfix","html_url":"https://github.com/coldfix","followers_url":"https://api.github.com/users/coldfix/followers","following_url":"https://api.github.com/users/coldfix/following{/other_user}","gists_url":"https://api.github.com/users/coldfix/gists{/gist_id}","starred_url":"https://api.github.com/users/coldfix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coldfix/subscriptions","organizations_url":"https://api.github.com/users/coldfix/orgs","repos_url":"https://api.github.com/users/coldfix/repos","events_url":"https://api.github.com/users/coldfix/events{/privacy}","received_events_url":"https://api.github.com/users/coldfix/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T11:55:06Z","updated_at":"2016-09-27T11:55:06Z","body":"There is no MAD-X command called `TABLE`, so your code is clearly incorrect. Also, it looks like you might be passing an incorrect file name. Furthermore, you did (again) not deliver the MAD-X example file with your issue. What are you trying to achieve exactly? BTW: I'm not a MAD-X export, so if you're asking for some basic MAD-X functionality, ask them."}}
{"actor":{"display_login":"coldfix"}}