{"action":"closed","number":712,"pull_request":{"url":"https://api.github.com/repos/openfisca/openfisca-core/pulls/712","id":209855567,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5ODU1NTY3","html_url":"https://github.com/openfisca/openfisca-core/pull/712","diff_url":"https://github.com/openfisca/openfisca-core/pull/712.diff","patch_url":"https://github.com/openfisca/openfisca-core/pull/712.patch","issue_url":"https://api.github.com/repos/openfisca/openfisca-core/issues/712","number":712,"state":"closed","locked":false,"title":"Add dump & restore to holders & simulations.","user":{"login":"eraviart","id":1561559,"node_id":"MDQ6VXNlcjE1NjE1NTk=","avatar_url":"https://avatars2.githubusercontent.com/u/1561559?v=4","gravatar_id":"","url":"https://api.github.com/users/eraviart","html_url":"https://github.com/eraviart","followers_url":"https://api.github.com/users/eraviart/followers","following_url":"https://api.github.com/users/eraviart/following{/other_user}","gists_url":"https://api.github.com/users/eraviart/gists{/gist_id}","starred_url":"https://api.github.com/users/eraviart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eraviart/subscriptions","organizations_url":"https://api.github.com/users/eraviart/orgs","repos_url":"https://api.github.com/users/eraviart/repos","events_url":"https://api.github.com/users/eraviart/events{/privacy}","received_events_url":"https://api.github.com/users/eraviart/received_events","type":"User","site_admin":false},"body":"#### New features\r\n\r\n- Add dump & restore to holders & simulations (fix #661).\r\n\r\n-------------------\r\n\r\nEDIT (@fpagnoux)\r\n\r\nDump:\r\n\r\n```py\r\nfrom openfisca_core.tools.simulation_dumper import  dump_simulation, \r\ndump_simulation(simulation, '/path/to/directory')\r\n```\r\n\r\nRestore:\r\n\r\n```py\r\nfrom openfisca_core.tools.simulation_dumper import restore_simulation\r\nsimulation_2 = restore_simulation('/path/to/directory', tax_benefit_system)\r\n```\r\n\r\n","created_at":"2018-08-21T14:55:40Z","updated_at":"2018-08-29T15:19:07Z","closed_at":"2018-08-29T15:19:07Z","merged_at":"2018-08-29T15:19:07Z","merge_commit_sha":"74041c3d1e29015ebfe2b4322189ec39e98391ad","assignee":{"login":"sandcha","id":6567910,"node_id":"MDQ6VXNlcjY1Njc5MTA=","avatar_url":"https://avatars1.githubusercontent.com/u/6567910?v=4","gravatar_id":"","url":"https://api.github.com/users/sandcha","html_url":"https://github.com/sandcha","followers_url":"https://api.github.com/users/sandcha/followers","following_url":"https://api.github.com/users/sandcha/following{/other_user}","gists_url":"https://api.github.com/users/sandcha/gists{/gist_id}","starred_url":"https://api.github.com/users/sandcha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandcha/subscriptions","organizations_url":"https://api.github.com/users/sandcha/orgs","repos_url":"https://api.github.com/users/sandcha/repos","events_url":"https://api.github.com/users/sandcha/events{/privacy}","received_events_url":"https://api.github.com/users/sandcha/received_events","type":"User","site_admin":false},"assignees":[{"login":"sandcha","id":6567910,"node_id":"MDQ6VXNlcjY1Njc5MTA=","avatar_url":"https://avatars1.githubusercontent.com/u/6567910?v=4","gravatar_id":"","url":"https://api.github.com/users/sandcha","html_url":"https://github.com/sandcha","followers_url":"https://api.github.com/users/sandcha/followers","following_url":"https://api.github.com/users/sandcha/following{/other_user}","gists_url":"https://api.github.com/users/sandcha/gists{/gist_id}","starred_url":"https://api.github.com/users/sandcha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandcha/subscriptions","organizations_url":"https://api.github.com/users/sandcha/orgs","repos_url":"https://api.github.com/users/sandcha/repos","events_url":"https://api.github.com/users/sandcha/events{/privacy}","received_events_url":"https://api.github.com/users/sandcha/received_events","type":"User","site_admin":false},{"login":"fpagnoux","id":11834997,"node_id":"MDQ6VXNlcjExODM0OTk3","avatar_url":"https://avatars3.githubusercontent.com/u/11834997?v=4","gravatar_id":"","url":"https://api.github.com/users/fpagnoux","html_url":"https://github.com/fpagnoux","followers_url":"https://api.github.com/users/fpagnoux/followers","following_url":"https://api.github.com/users/fpagnoux/following{/other_user}","gists_url":"https://api.github.com/users/fpagnoux/gists{/gist_id}","starred_url":"https://api.github.com/users/fpagnoux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpagnoux/subscriptions","organizations_url":"https://api.github.com/users/fpagnoux/orgs","repos_url":"https://api.github.com/users/fpagnoux/repos","events_url":"https://api.github.com/users/fpagnoux/events{/privacy}","received_events_url":"https://api.github.com/users/fpagnoux/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"fpagnoux","id":11834997,"node_id":"MDQ6VXNlcjExODM0OTk3","avatar_url":"https://avatars3.githubusercontent.com/u/11834997?v=4","gravatar_id":"","url":"https://api.github.com/users/fpagnoux","html_url":"https://github.com/fpagnoux","followers_url":"https://api.github.com/users/fpagnoux/followers","following_url":"https://api.github.com/users/fpagnoux/following{/other_user}","gists_url":"https://api.github.com/users/fpagnoux/gists{/gist_id}","starred_url":"https://api.github.com/users/fpagnoux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpagnoux/subscriptions","organizations_url":"https://api.github.com/users/fpagnoux/orgs","repos_url":"https://api.github.com/users/fpagnoux/repos","events_url":"https://api.github.com/users/fpagnoux/events{/privacy}","received_events_url":"https://api.github.com/users/fpagnoux/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/openfisca/openfisca-core/pulls/712/commits","review_comments_url":"https://api.github.com/repos/openfisca/openfisca-core/pulls/712/comments","review_comment_url":"https://api.github.com/repos/openfisca/openfisca-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openfisca/openfisca-core/issues/712/comments","statuses_url":"https://api.github.com/repos/openfisca/openfisca-core/statuses/7eb5800c9e98c1d11dd7e132db3140c5266abae2","head":{"label":"openfisca:dump-restore","ref":"dump-restore","sha":"7eb5800c9e98c1d11dd7e132db3140c5266abae2","user":{"login":"openfisca","id":1794404,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3OTQ0MDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1794404?v=4","gravatar_id":"","url":"https://api.github.com/users/openfisca","html_url":"https://github.com/openfisca","followers_url":"https://api.github.com/users/openfisca/followers","following_url":"https://api.github.com/users/openfisca/following{/other_user}","gists_url":"https://api.github.com/users/openfisca/gists{/gist_id}","starred_url":"https://api.github.com/users/openfisca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfisca/subscriptions","organizations_url":"https://api.github.com/users/openfisca/orgs","repos_url":"https://api.github.com/users/openfisca/repos","events_url":"https://api.github.com/users/openfisca/events{/privacy}","received_events_url":"https://api.github.com/users/openfisca/received_events","type":"Organization","site_admin":false},"repo":{"id":15510254,"node_id":"MDEwOlJlcG9zaXRvcnkxNTUxMDI1NA==","name":"openfisca-core","full_name":"openfisca/openfisca-core","owner":{"login":"openfisca","id":1794404,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3OTQ0MDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1794404?v=4","gravatar_id":"","url":"https://api.github.com/users/openfisca","html_url":"https://github.com/openfisca","followers_url":"https://api.github.com/users/openfisca/followers","following_url":"https://api.github.com/users/openfisca/following{/other_user}","gists_url":"https://api.github.com/users/openfisca/gists{/gist_id}","starred_url":"https://api.github.com/users/openfisca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfisca/subscriptions","organizations_url":"https://api.github.com/users/openfisca/orgs","repos_url":"https://api.github.com/users/openfisca/repos","events_url":"https://api.github.com/users/openfisca/events{/privacy}","received_events_url":"https://api.github.com/users/openfisca/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openfisca/openfisca-core","description":"OpenFisca core engine. See other repositories for countries-specific code & data.","fork":false,"url":"https://api.github.com/repos/openfisca/openfisca-core","forks_url":"https://api.github.com/repos/openfisca/openfisca-core/forks","keys_url":"https://api.github.com/repos/openfisca/openfisca-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openfisca/openfisca-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openfisca/openfisca-core/teams","hooks_url":"https://api.github.com/repos/openfisca/openfisca-core/hooks","issue_events_url":"https://api.github.com/repos/openfisca/openfisca-core/issues/events{/number}","events_url":"https://api.github.com/repos/openfisca/openfisca-core/events","assignees_url":"https://api.github.com/repos/openfisca/openfisca-core/assignees{/user}","branches_url":"https://api.github.com/repos/openfisca/openfisca-core/branches{/branch}","tags_url":"https://api.github.com/repos/openfisca/openfisca-core/tags","blobs_url":"https://api.github.com/repos/openfisca/openfisca-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openfisca/openfisca-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openfisca/openfisca-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/openfisca/openfisca-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openfisca/openfisca-core/statuses/{sha}","languages_url":"https://api.github.com/repos/openfisca/openfisca-core/languages","stargazers_url":"https://api.github.com/repos/openfisca/openfisca-core/stargazers","contributors_url":"https://api.github.com/repos/openfisca/openfisca-core/contributors","subscribers_url":"https://api.github.com/repos/openfisca/openfisca-core/subscribers","subscription_url":"https://api.github.com/repos/openfisca/openfisca-core/subscription","commits_url":"https://api.github.com/repos/openfisca/openfisca-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/openfisca/openfisca-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/openfisca/openfisca-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/openfisca/openfisca-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/openfisca/openfisca-core/contents/{+path}","compare_url":"https://api.github.com/repos/openfisca/openfisca-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openfisca/openfisca-core/merges","archive_url":"https://api.github.com/repos/openfisca/openfisca-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openfisca/openfisca-core/downloads","issues_url":"https://api.github.com/repos/openfisca/openfisca-core/issues{/number}","pulls_url":"https://api.github.com/repos/openfisca/openfisca-core/pulls{/number}","milestones_url":"https://api.github.com/repos/openfisca/openfisca-core/milestones{/number}","notifications_url":"https://api.github.com/repos/openfisca/openfisca-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openfisca/openfisca-core/labels{/name}","releases_url":"https://api.github.com/repos/openfisca/openfisca-core/releases{/id}","deployments_url":"https://api.github.com/repos/openfisca/openfisca-core/deployments","created_at":"2013-12-29T15:17:04Z","updated_at":"2018-08-23T20:06:45Z","pushed_at":"2018-08-29T15:19:07Z","git_url":"git://github.com/openfisca/openfisca-core.git","ssh_url":"git@github.com:openfisca/openfisca-core.git","clone_url":"https://github.com/openfisca/openfisca-core.git","svn_url":"https://github.com/openfisca/openfisca-core","homepage":"https://openfisca.org","size":26550,"stargazers_count":44,"watchers_count":44,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":50,"mirror_url":null,"archived":false,"open_issues_count":46,"license":null,"forks":50,"open_issues":46,"watchers":44,"default_branch":"master"}},"base":{"label":"openfisca:master","ref":"master","sha":"c0cb922f58169793b6ba0d75b52794a5874caea7","user":{"login":"openfisca","id":1794404,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3OTQ0MDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1794404?v=4","gravatar_id":"","url":"https://api.github.com/users/openfisca","html_url":"https://github.com/openfisca","followers_url":"https://api.github.com/users/openfisca/followers","following_url":"https://api.github.com/users/openfisca/following{/other_user}","gists_url":"https://api.github.com/users/openfisca/gists{/gist_id}","starred_url":"https://api.github.com/users/openfisca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfisca/subscriptions","organizations_url":"https://api.github.com/users/openfisca/orgs","repos_url":"https://api.github.com/users/openfisca/repos","events_url":"https://api.github.com/users/openfisca/events{/privacy}","received_events_url":"https://api.github.com/users/openfisca/received_events","type":"Organization","site_admin":false},"repo":{"id":15510254,"node_id":"MDEwOlJlcG9zaXRvcnkxNTUxMDI1NA==","name":"openfisca-core","full_name":"openfisca/openfisca-core","owner":{"login":"openfisca","id":1794404,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3OTQ0MDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1794404?v=4","gravatar_id":"","url":"https://api.github.com/users/openfisca","html_url":"https://github.com/openfisca","followers_url":"https://api.github.com/users/openfisca/followers","following_url":"https://api.github.com/users/openfisca/following{/other_user}","gists_url":"https://api.github.com/users/openfisca/gists{/gist_id}","starred_url":"https://api.github.com/users/openfisca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfisca/subscriptions","organizations_url":"https://api.github.com/users/openfisca/orgs","repos_url":"https://api.github.com/users/openfisca/repos","events_url":"https://api.github.com/users/openfisca/events{/privacy}","received_events_url":"https://api.github.com/users/openfisca/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openfisca/openfisca-core","description":"OpenFisca core engine. See other repositories for countries-specific code & data.","fork":false,"url":"https://api.github.com/repos/openfisca/openfisca-core","forks_url":"https://api.github.com/repos/openfisca/openfisca-core/forks","keys_url":"https://api.github.com/repos/openfisca/openfisca-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openfisca/openfisca-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openfisca/openfisca-core/teams","hooks_url":"https://api.github.com/repos/openfisca/openfisca-core/hooks","issue_events_url":"https://api.github.com/repos/openfisca/openfisca-core/issues/events{/number}","events_url":"https://api.github.com/repos/openfisca/openfisca-core/events","assignees_url":"https://api.github.com/repos/openfisca/openfisca-core/assignees{/user}","branches_url":"https://api.github.com/repos/openfisca/openfisca-core/branches{/branch}","tags_url":"https://api.github.com/repos/openfisca/openfisca-core/tags","blobs_url":"https://api.github.com/repos/openfisca/openfisca-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openfisca/openfisca-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openfisca/openfisca-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/openfisca/openfisca-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openfisca/openfisca-core/statuses/{sha}","languages_url":"https://api.github.com/repos/openfisca/openfisca-core/languages","stargazers_url":"https://api.github.com/repos/openfisca/openfisca-core/stargazers","contributors_url":"https://api.github.com/repos/openfisca/openfisca-core/contributors","subscribers_url":"https://api.github.com/repos/openfisca/openfisca-core/subscribers","subscription_url":"https://api.github.com/repos/openfisca/openfisca-core/subscription","commits_url":"https://api.github.com/repos/openfisca/openfisca-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/openfisca/openfisca-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/openfisca/openfisca-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/openfisca/openfisca-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/openfisca/openfisca-core/contents/{+path}","compare_url":"https://api.github.com/repos/openfisca/openfisca-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openfisca/openfisca-core/merges","archive_url":"https://api.github.com/repos/openfisca/openfisca-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openfisca/openfisca-core/downloads","issues_url":"https://api.github.com/repos/openfisca/openfisca-core/issues{/number}","pulls_url":"https://api.github.com/repos/openfisca/openfisca-core/pulls{/number}","milestones_url":"https://api.github.com/repos/openfisca/openfisca-core/milestones{/number}","notifications_url":"https://api.github.com/repos/openfisca/openfisca-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openfisca/openfisca-core/labels{/name}","releases_url":"https://api.github.com/repos/openfisca/openfisca-core/releases{/id}","deployments_url":"https://api.github.com/repos/openfisca/openfisca-core/deployments","created_at":"2013-12-29T15:17:04Z","updated_at":"2018-08-23T20:06:45Z","pushed_at":"2018-08-29T15:19:07Z","git_url":"git://github.com/openfisca/openfisca-core.git","ssh_url":"git@github.com:openfisca/openfisca-core.git","clone_url":"https://github.com/openfisca/openfisca-core.git","svn_url":"https://github.com/openfisca/openfisca-core","homepage":"https://openfisca.org","size":26550,"stargazers_count":44,"watchers_count":44,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":50,"mirror_url":null,"archived":false,"open_issues_count":46,"license":null,"forks":50,"open_issues":46,"watchers":44,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openfisca/openfisca-core/pulls/712"},"html":{"href":"https://github.com/openfisca/openfisca-core/pull/712"},"issue":{"href":"https://api.github.com/repos/openfisca/openfisca-core/issues/712"},"comments":{"href":"https://api.github.com/repos/openfisca/openfisca-core/issues/712/comments"},"review_comments":{"href":"https://api.github.com/repos/openfisca/openfisca-core/pulls/712/comments"},"review_comment":{"href":"https://api.github.com/repos/openfisca/openfisca-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openfisca/openfisca-core/pulls/712/commits"},"statuses":{"href":"https://api.github.com/repos/openfisca/openfisca-core/statuses/7eb5800c9e98c1d11dd7e132db3140c5266abae2"}},"author_association":"MEMBER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"fpagnoux","id":11834997,"node_id":"MDQ6VXNlcjExODM0OTk3","avatar_url":"https://avatars3.githubusercontent.com/u/11834997?v=4","gravatar_id":"","url":"https://api.github.com/users/fpagnoux","html_url":"https://github.com/fpagnoux","followers_url":"https://api.github.com/users/fpagnoux/followers","following_url":"https://api.github.com/users/fpagnoux/following{/other_user}","gists_url":"https://api.github.com/users/fpagnoux/gists{/gist_id}","starred_url":"https://api.github.com/users/fpagnoux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpagnoux/subscriptions","organizations_url":"https://api.github.com/users/fpagnoux/orgs","repos_url":"https://api.github.com/users/fpagnoux/repos","events_url":"https://api.github.com/users/fpagnoux/events{/privacy}","received_events_url":"https://api.github.com/users/fpagnoux/received_events","type":"User","site_admin":false},"comments":8,"review_comments":3,"maintainer_can_modify":false,"commits":9,"additions":221,"deletions":14,"changed_files":8}}
{"actor":{"display_login":"fpagnoux"}}