{"action":"created","issue":{"url":"https://api.github.com/repos/openturns/openturns/issues/266","repository_url":"https://api.github.com/repos/openturns/openturns","labels_url":"https://api.github.com/repos/openturns/openturns/issues/266/labels{/name}","comments_url":"https://api.github.com/repos/openturns/openturns/issues/266/comments","events_url":"https://api.github.com/repos/openturns/openturns/issues/266/events","html_url":"https://github.com/openturns/openturns/pull/266","id":162103735,"number":266,"title":"Make ot.PythonFunction (optionally) distributed with multiprocessing","user":{"login":"felipeam86","id":5644836,"avatar_url":"https://avatars.githubusercontent.com/u/5644836?v=3","gravatar_id":"","url":"https://api.github.com/users/felipeam86","html_url":"https://github.com/felipeam86","followers_url":"https://api.github.com/users/felipeam86/followers","following_url":"https://api.github.com/users/felipeam86/following{/other_user}","gists_url":"https://api.github.com/users/felipeam86/gists{/gist_id}","starred_url":"https://api.github.com/users/felipeam86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipeam86/subscriptions","organizations_url":"https://api.github.com/users/felipeam86/orgs","repos_url":"https://api.github.com/users/felipeam86/repos","events_url":"https://api.github.com/users/felipeam86/events{/privacy}","received_events_url":"https://api.github.com/users/felipeam86/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-06-24T08:54:03Z","updated_at":"2016-06-27T13:51:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openturns/openturns/pulls/266","html_url":"https://github.com/openturns/openturns/pull/266","diff_url":"https://github.com/openturns/openturns/pull/266.diff","patch_url":"https://github.com/openturns/openturns/pull/266.patch"},"body":"This pull request adds the optional argument `n_cpus` to PythonFunction. If it is set, it distributes `func` with multiprocessing on the number of cpus specified by `n_cpus`. If `n_cpus=-1`, it uses all the cores of the machine. if `n_cpus=1`, it does nothing. If `n_cpus` and `func_sample` are both given as arguments, `n_cpus` will be ignored and samples will be handled by `func_sample`.\r\n\r\nThis function is limited to distributing `func` calls on the machine you are working on. More advanced distribution techniques will be develloped for [otwrapy.Parallelizer](http://felipeam86.github.io/otwrapy/_generated/otwrapy.Parallelizer.html#otwrapy.Parallelizer)\r\n"},"comment":{"url":"https://api.github.com/repos/openturns/openturns/issues/comments/228751176","html_url":"https://github.com/openturns/openturns/pull/266#issuecomment-228751176","issue_url":"https://api.github.com/repos/openturns/openturns/issues/266","id":228751176,"user":{"login":"jschueller","id":3832365,"avatar_url":"https://avatars.githubusercontent.com/u/3832365?v=3","gravatar_id":"","url":"https://api.github.com/users/jschueller","html_url":"https://github.com/jschueller","followers_url":"https://api.github.com/users/jschueller/followers","following_url":"https://api.github.com/users/jschueller/following{/other_user}","gists_url":"https://api.github.com/users/jschueller/gists{/gist_id}","starred_url":"https://api.github.com/users/jschueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jschueller/subscriptions","organizations_url":"https://api.github.com/users/jschueller/orgs","repos_url":"https://api.github.com/users/jschueller/repos","events_url":"https://api.github.com/users/jschueller/events{/privacy}","received_events_url":"https://api.github.com/users/jschueller/received_events","type":"User","site_admin":false},"created_at":"2016-06-27T13:51:11Z","updated_at":"2016-06-27T13:51:11Z","body":"+1"}}
{"actor":{"display_login":"jschueller"}}