{"action":"closed","issue":{"url":"https://api.github.com/repos/justingardner/mgl/issues/1","labels_url":"https://api.github.com/repos/justingardner/mgl/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/justingardner/mgl/issues/1/comments","events_url":"https://api.github.com/repos/justingardner/mgl/issues/1/events","html_url":"https://github.com/justingardner/mgl/issues/1","id":53918643,"number":1,"title":"doStaircase('init', ...) functionality","user":{"login":"dbirman","id":7455770,"avatar_url":"https://avatars.githubusercontent.com/u/7455770?v=3","gravatar_id":"","url":"https://api.github.com/users/dbirman","html_url":"https://github.com/dbirman","followers_url":"https://api.github.com/users/dbirman/followers","following_url":"https://api.github.com/users/dbirman/following{/other_user}","gists_url":"https://api.github.com/users/dbirman/gists{/gist_id}","starred_url":"https://api.github.com/users/dbirman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbirman/subscriptions","organizations_url":"https://api.github.com/users/dbirman/orgs","repos_url":"https://api.github.com/users/dbirman/repos","events_url":"https://api.github.com/users/dbirman/events{/privacy}","received_events_url":"https://api.github.com/users/dbirman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-09T21:44:41Z","updated_at":"2015-04-01T17:03:53Z","closed_at":"2015-04-01T17:03:53Z","body":"You can't override the init arguments when calling doStaircase('init',s,...). It would be great to be able to do `doStaircase('init', s, 'initialThreshold', x);` and have it override the calculated threshold or whatever other arguments you want to include.\r\n\r\nI'm working around this issue by calling:\r\n`[args, vals, ~] = getArgs(s(1).initArgs);\r\n    s(end+1) = doStaircase('init','updown',args{1},vals{1},args{2},vals{2});`\r\ninstead of using `doStaircase('init',s, ...);`\r\n\r\nBut obviously that's a mess and only works because I happen to know the number of initArgs I was using originally. If there's a better way to do this, or if the functionality exists and I just don't understand it let me know."}}