{"action":"closed","issue":{"url":"https://api.github.com/repos/brian-team/brian2/issues/426","labels_url":"https://api.github.com/repos/brian-team/brian2/issues/426/labels{/name}","comments_url":"https://api.github.com/repos/brian-team/brian2/issues/426/comments","events_url":"https://api.github.com/repos/brian-team/brian2/issues/426/events","html_url":"https://github.com/brian-team/brian2/issues/426","id":61030668,"number":426,"title":"Add `before_` and `after_` slots to the schedule","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},"labels":[{"url":"https://api.github.com/repos/brian-team/brian2/labels/easy","name":"easy","color":"009800"},{"url":"https://api.github.com/repos/brian-team/brian2/labels/enhancement","name":"enhancement","color":"207de5"}],"state":"closed","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/brian-team/brian2/milestones/8","html_url":"https://github.com/brian-team/brian2/milestones/2.0beta3","labels_url":"https://api.github.com/repos/brian-team/brian2/milestones/8/labels","id":961070,"number":8,"title":"2.0beta3","description":"","creator":{"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},"open_issues":32,"closed_issues":9,"state":"open","created_at":"2015-02-02T09:39:43Z","updated_at":"2015-04-24T17:10:18Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-03-13T10:22:09Z","updated_at":"2015-04-24T17:10:18Z","closed_at":"2015-04-24T17:10:18Z","body":"In Brian 1, there were slots like `after_thresholds` and I think they are more convenient than writing `when='thresholds', order=1` for example. A good solution would be to not include them in `Network.schedule` (i.e. this would still just be `['start', 'groups', ...]`) but instead automatically add the `before_` and `after_` slots when sorting the objects in a network. This way, one can also conveniently add new slots to the schedule (e.g. for custom operations) and then use `before_`, `after_` relative to them."}}