{"action":"opened","issue":{"url":"https://api.github.com/repos/nengo/nengo/issues/609","labels_url":"https://api.github.com/repos/nengo/nengo/issues/609/labels{/name}","comments_url":"https://api.github.com/repos/nengo/nengo/issues/609/comments","events_url":"https://api.github.com/repos/nengo/nengo/issues/609/events","html_url":"https://github.com/nengo/nengo/issues/609","id":53568859,"number":609,"title":"LIF neuron with tau_ref=0","user":{"login":"fragapanagos","id":1481202,"avatar_url":"https://avatars.githubusercontent.com/u/1481202?v=3","gravatar_id":"","url":"https://api.github.com/users/fragapanagos","html_url":"https://github.com/fragapanagos","followers_url":"https://api.github.com/users/fragapanagos/followers","following_url":"https://api.github.com/users/fragapanagos/following{/other_user}","gists_url":"https://api.github.com/users/fragapanagos/gists{/gist_id}","starred_url":"https://api.github.com/users/fragapanagos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fragapanagos/subscriptions","organizations_url":"https://api.github.com/users/fragapanagos/orgs","repos_url":"https://api.github.com/users/fragapanagos/repos","events_url":"https://api.github.com/users/fragapanagos/events{/privacy}","received_events_url":"https://api.github.com/users/fragapanagos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-06T21:58:43Z","updated_at":"2015-01-06T21:58:43Z","closed_at":null,"body":"I was playing around with tuning curve shapes and found that the LIF neuron model does not handle tau_ref=0 well.\r\n\r\n    import nengo\r\n    net = nengo.Network()\r\n    with net:\r\n        ens = nengo.Ensemble(10, 1, neuron_type=nengo.LIF(tau_ref=0))\r\n    sim = nengo.Simulator(net)\r\n    sim.run(1)\r\n\r\nThrows\r\n\r\n    ZeroDivisionError: float division by zero\r\n\r\nI suppose the model should either be able to handle this case or it should be documented and caught earlier.\r\n"}}