{"comment":{"url":"https://api.github.com/repos/brian-team/org.neuroml.export/comments/11746548","html_url":"https://github.com/brian-team/org.neuroml.export/commit/e5cdbcc8397cd390cbe74b26b5158f744bb4f54d#commitcomment-11746548","id":11746548,"user":{"login":"mstimberg","id":1381982,"avatar_url":"https://avatars.githubusercontent.com/u/1381982?v=3","gravatar_id":"","url":"https://api.github.com/users/mstimberg","html_url":"https://github.com/mstimberg","followers_url":"https://api.github.com/users/mstimberg/followers","following_url":"https://api.github.com/users/mstimberg/following{/other_user}","gists_url":"https://api.github.com/users/mstimberg/gists{/gist_id}","starred_url":"https://api.github.com/users/mstimberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstimberg/subscriptions","organizations_url":"https://api.github.com/users/mstimberg/orgs","repos_url":"https://api.github.com/users/mstimberg/repos","events_url":"https://api.github.com/users/mstimberg/events{/privacy}","received_events_url":"https://api.github.com/users/mstimberg/received_events","type":"User","site_admin":false},"position":76,"line":459,"path":"src/main/java/org/neuroml/export/brian/BrianWriter.java","commit_id":"e5cdbcc8397cd390cbe74b26b5158f744bb4f54d","created_at":"2015-06-18T13:11:19Z","updated_at":"2015-06-18T13:11:19Z","body":"We have to do something different here for the main regime and the refractory one, so don't loop over all regimes but deal with each individually:\r\n```Java\r\nif (main_regime != null)\r\n{\r\n  // use on condition for threshold, and state assignments for reset\r\n}\r\nif (refractory_regime != null)\r\n{\r\n    // use (logically negated) on condition for refractory, throw an error if there is a state assignment\r\n}\r\n```"}}