{"action":"opened","issue":{"url":"https://api.github.com/repos/ocelot-collab/ocelot/issues/2","repository_url":"https://api.github.com/repos/ocelot-collab/ocelot","labels_url":"https://api.github.com/repos/ocelot-collab/ocelot/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/ocelot-collab/ocelot/issues/2/comments","events_url":"https://api.github.com/repos/ocelot-collab/ocelot/issues/2/events","html_url":"https://github.com/ocelot-collab/ocelot/issues/2","id":304663783,"number":2,"title":"CSR with 0 angle bends","user":{"login":"iagapov","id":6952937,"avatar_url":"https://avatars1.githubusercontent.com/u/6952937?v=4","gravatar_id":"","url":"https://api.github.com/users/iagapov","html_url":"https://github.com/iagapov","followers_url":"https://api.github.com/users/iagapov/followers","following_url":"https://api.github.com/users/iagapov/following{/other_user}","gists_url":"https://api.github.com/users/iagapov/gists{/gist_id}","starred_url":"https://api.github.com/users/iagapov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iagapov/subscriptions","organizations_url":"https://api.github.com/users/iagapov/orgs","repos_url":"https://api.github.com/users/iagapov/repos","events_url":"https://api.github.com/users/iagapov/events{/privacy}","received_events_url":"https://api.github.com/users/iagapov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-13T08:11:05Z","updated_at":"2018-03-13T08:11:05Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"if a bend has 0 angle in the lattice csr crashes like so\r\n\r\nTraceback (most recent call last):\r\n  File \"C:\\workspace\\p4-h\\collective\\cellA.py\", line 192, in <module>\r\n    navi.add_physics_proc(csr,lat.sequence[0], IDMARKER)\r\n  File \"c:\\workspace\\ocelot-collab\\ocelot\\cpbd\\optics.py\", line 1067, in add_physics_proc\r\n    self.process_table.add_physics_proc(physics_proc, elem1, elem2)\r\n  File \"c:\\workspace\\ocelot-collab\\ocelot\\cpbd\\optics.py\", line 1041, in add_physics_proc\r\n    physics_proc.prepare(self.lat)\r\n  File \"c:\\workspace\\ocelot-collab\\ocelot\\cpbd\\csr.py\", line 627, in prepare\r\n    R = -elem.l/elem.angle\r\nZeroDivisionError: float division by zero\r\n\r\n"}}
{"actor":{"display_login":"iagapov"}}