{"action":"created","issue":{"url":"https://api.github.com/repos/lucarebuffi/ShadowOui/issues/142","repository_url":"https://api.github.com/repos/lucarebuffi/ShadowOui","labels_url":"https://api.github.com/repos/lucarebuffi/ShadowOui/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/lucarebuffi/ShadowOui/issues/142/comments","events_url":"https://api.github.com/repos/lucarebuffi/ShadowOui/issues/142/events","html_url":"https://github.com/lucarebuffi/ShadowOui/issues/142","id":189609660,"number":142,"title":"Hybrid not working with loaded source file","user":{"login":"xianbo","id":4226296,"avatar_url":"https://avatars.githubusercontent.com/u/4226296?v=3","gravatar_id":"","url":"https://api.github.com/users/xianbo","html_url":"https://github.com/xianbo","followers_url":"https://api.github.com/users/xianbo/followers","following_url":"https://api.github.com/users/xianbo/following{/other_user}","gists_url":"https://api.github.com/users/xianbo/gists{/gist_id}","starred_url":"https://api.github.com/users/xianbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xianbo/subscriptions","organizations_url":"https://api.github.com/users/xianbo/orgs","repos_url":"https://api.github.com/users/xianbo/repos","events_url":"https://api.github.com/users/xianbo/events{/privacy}","received_events_url":"https://api.github.com/users/xianbo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-16T06:53:53Z","updated_at":"2016-11-23T09:52:15Z","closed_at":"2016-11-23T09:52:15Z","body":"Hybrid does not work if use a shadow file reader to pass a beam. It shows an error \"list index out of range\".\r\nTo see this error, simply use a geometric source and a shadow file writer to save a \"begin_test.dat\" file or whatever name. Then use a shadow file reader to read the file and pass it to a slit screen and attach a hybrid screen to it. \r\nIt is the same for all hybrid types. Also, it is the same no mater how may OE are between the shadow file reader and the hybrid screen."},"comment":{"url":"https://api.github.com/repos/lucarebuffi/ShadowOui/issues/comments/262471471","html_url":"https://github.com/lucarebuffi/ShadowOui/issues/142#issuecomment-262471471","issue_url":"https://api.github.com/repos/lucarebuffi/ShadowOui/issues/142","id":262471471,"user":{"login":"lucarebuffi","id":6713598,"avatar_url":"https://avatars.githubusercontent.com/u/6713598?v=3","gravatar_id":"","url":"https://api.github.com/users/lucarebuffi","html_url":"https://github.com/lucarebuffi","followers_url":"https://api.github.com/users/lucarebuffi/followers","following_url":"https://api.github.com/users/lucarebuffi/following{/other_user}","gists_url":"https://api.github.com/users/lucarebuffi/gists{/gist_id}","starred_url":"https://api.github.com/users/lucarebuffi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucarebuffi/subscriptions","organizations_url":"https://api.github.com/users/lucarebuffi/orgs","repos_url":"https://api.github.com/users/lucarebuffi/repos","events_url":"https://api.github.com/users/lucarebuffi/events{/privacy}","received_events_url":"https://api.github.com/users/lucarebuffi/received_events","type":"User","site_admin":false},"created_at":"2016-11-23T09:52:15Z","updated_at":"2016-11-23T09:52:15Z","body":"The problem was that the read file widget recreate a beam without any history. I added the creation of a fake history: \r\nSource: impossible to recreate, just added an empty history element with oe_number =0\r\n\"Safety\" OE: \"pass-through\" Empty OE, with 0 distances (source and image planes) and 0-180 incidence-reflection angles.\r\nThe safety OE ensures any possible re-tracing algorithms from history (as Hybrid does in some cases) and prevents the usage of the fake empty source.\r\n\r\nPlease test it. "}}
{"actor":{"display_login":"lucarebuffi"}}