{"comment":{"url":"https://api.github.com/repos/firedrakeproject/gusto/comments/31194944","html_url":"https://github.com/firedrakeproject/gusto/commit/588b96731db4a18648ccabcafa8344545266a697#commitcomment-31194944","id":31194944,"node_id":"MDEzOkNvbW1pdENvbW1lbnQzMTE5NDk0NA==","user":{"login":"wence-","id":1126981,"node_id":"MDQ6VXNlcjExMjY5ODE=","avatar_url":"https://avatars2.githubusercontent.com/u/1126981?v=4","gravatar_id":"","url":"https://api.github.com/users/wence-","html_url":"https://github.com/wence-","followers_url":"https://api.github.com/users/wence-/followers","following_url":"https://api.github.com/users/wence-/following{/other_user}","gists_url":"https://api.github.com/users/wence-/gists{/gist_id}","starred_url":"https://api.github.com/users/wence-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wence-/subscriptions","organizations_url":"https://api.github.com/users/wence-/orgs","repos_url":"https://api.github.com/users/wence-/repos","events_url":"https://api.github.com/users/wence-/events{/privacy}","received_events_url":"https://api.github.com/users/wence-/received_events","type":"User","site_admin":false},"position":75,"line":66,"path":"gusto/equations.py","commit_id":"588b96731db4a18648ccabcafa8344545266a697","created_at":"2018-11-06T16:25:04Z","updated_at":"2018-11-06T16:25:04Z","author_association":"CONTRIBUTOR","body":"Signature should be we think:\r\n\r\n```python\r\nimport operator\r\nidentity = lambda t: t\r\ndrop = lambda t: None\r\ndef label_map(self, term_filter, map_if_true=identity, map_if_false=identity):\r\n    return Equation(functools.reduce(operator.add, (map_if_true(t) if term_filter(t) else map_if_false(t) for t in self)))\r\n```\r\n"}}
{"actor":{"display_login":"wence-"}}