{"action":"created","issue":{"url":"https://api.github.com/repos/nengo/nengo/issues/762","labels_url":"https://api.github.com/repos/nengo/nengo/issues/762/labels{/name}","comments_url":"https://api.github.com/repos/nengo/nengo/issues/762/comments","events_url":"https://api.github.com/repos/nengo/nengo/issues/762/events","html_url":"https://github.com/nengo/nengo/issues/762","id":91072368,"number":762,"title":"Make piecewise able to return strings","user":{"login":"Seanny123","id":1918825,"avatar_url":"https://avatars.githubusercontent.com/u/1918825?v=3","gravatar_id":"","url":"https://api.github.com/users/Seanny123","html_url":"https://github.com/Seanny123","followers_url":"https://api.github.com/users/Seanny123/followers","following_url":"https://api.github.com/users/Seanny123/following{/other_user}","gists_url":"https://api.github.com/users/Seanny123/gists{/gist_id}","starred_url":"https://api.github.com/users/Seanny123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seanny123/subscriptions","organizations_url":"https://api.github.com/users/Seanny123/orgs","repos_url":"https://api.github.com/users/Seanny123/repos","events_url":"https://api.github.com/users/Seanny123/events{/privacy}","received_events_url":"https://api.github.com/users/Seanny123/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nengo/nengo/labels/feature%20request","name":"feature request","color":"fef2c0"},{"url":"https://api.github.com/repos/nengo/nengo/labels/low%20hanging%20fruit","name":"low hanging fruit","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-25T20:51:07Z","updated_at":"2015-06-25T20:52:51Z","closed_at":null,"body":"At the moment, `piecewise` is unable to return strings (it currently returns an array with `dtype=|S3`) which means it isn't possible to use it in `spa`. Would it be a bad idea to hard-code special treatment for strings? Alternatively, what about making a `piecewise_spa` function?"},"comment":{"url":"https://api.github.com/repos/nengo/nengo/issues/comments/115393939","html_url":"https://github.com/nengo/nengo/issues/762#issuecomment-115393939","issue_url":"https://api.github.com/repos/nengo/nengo/issues/762","id":115393939,"user":{"login":"tcstewar","id":2380772,"avatar_url":"https://avatars.githubusercontent.com/u/2380772?v=3","gravatar_id":"","url":"https://api.github.com/users/tcstewar","html_url":"https://github.com/tcstewar","followers_url":"https://api.github.com/users/tcstewar/followers","following_url":"https://api.github.com/users/tcstewar/following{/other_user}","gists_url":"https://api.github.com/users/tcstewar/gists{/gist_id}","starred_url":"https://api.github.com/users/tcstewar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcstewar/subscriptions","organizations_url":"https://api.github.com/users/tcstewar/orgs","repos_url":"https://api.github.com/users/tcstewar/repos","events_url":"https://api.github.com/users/tcstewar/events{/privacy}","received_events_url":"https://api.github.com/users/tcstewar/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T20:52:51Z","updated_at":"2015-06-25T20:52:51Z","body":"What's you situation for using this?  I've generally found that it's clearer to not use ```piecewise``` and just define the function for a lot of cases...."}}