{"action":"opened","number":52,"pull_request":{"url":"https://api.github.com/repos/MDAnalysis/pmda/pulls/52","id":201070798,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxMDcwNzk4","html_url":"https://github.com/MDAnalysis/pmda/pull/52","diff_url":"https://github.com/MDAnalysis/pmda/pull/52.diff","patch_url":"https://github.com/MDAnalysis/pmda/pull/52.patch","issue_url":"https://api.github.com/repos/MDAnalysis/pmda/issues/52","number":52,"state":"open","locked":false,"title":"added attr_lock to parallelanalysisbase","user":{"login":"richardjgowers","id":9249543,"node_id":"MDQ6VXNlcjkyNDk1NDM=","avatar_url":"https://avatars1.githubusercontent.com/u/9249543?v=4","gravatar_id":"","url":"https://api.github.com/users/richardjgowers","html_url":"https://github.com/richardjgowers","followers_url":"https://api.github.com/users/richardjgowers/followers","following_url":"https://api.github.com/users/richardjgowers/following{/other_user}","gists_url":"https://api.github.com/users/richardjgowers/gists{/gist_id}","starred_url":"https://api.github.com/users/richardjgowers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardjgowers/subscriptions","organizations_url":"https://api.github.com/users/richardjgowers/orgs","repos_url":"https://api.github.com/users/richardjgowers/repos","events_url":"https://api.github.com/users/richardjgowers/events{/privacy}","received_events_url":"https://api.github.com/users/richardjgowers/received_events","type":"User","site_admin":false},"body":"In #46 problems were encountered partly because in `_single_frame` the class was being modified.\r\n\r\nThis adds some special behaviour to the ParallelAnalysisBase setattr which allows the setting of attributes to be turned off.\r\n\r\nI'm still reading through the package, but I think you could use this in `run`, something like:\r\n\r\n```python\r\ndef run():\r\n    self._prepare()\r\n    # done preparing, lock everything up\r\n    self._attr_lock = True\r\n    # parallel magic\r\n\r\n    # returned from parallel land, restore class to normal behaviour\r\n    self._attr_lock = False\r\n    self._conclude()","created_at":"2018-07-12T17:21:26Z","updated_at":"2018-07-12T17:21:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/MDAnalysis/pmda/pulls/52/commits","review_comments_url":"https://api.github.com/repos/MDAnalysis/pmda/pulls/52/comments","review_comment_url":"https://api.github.com/repos/MDAnalysis/pmda/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MDAnalysis/pmda/issues/52/comments","statuses_url":"https://api.github.com/repos/MDAnalysis/pmda/statuses/332290e8d85acf015ac7cd67a555d00bc88896ec","head":{"label":"MDAnalysis:attrlock","ref":"attrlock","sha":"332290e8d85acf015ac7cd67a555d00bc88896ec","user":{"login":"MDAnalysis","id":11445951,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNDQ1OTUx","avatar_url":"https://avatars1.githubusercontent.com/u/11445951?v=4","gravatar_id":"","url":"https://api.github.com/users/MDAnalysis","html_url":"https://github.com/MDAnalysis","followers_url":"https://api.github.com/users/MDAnalysis/followers","following_url":"https://api.github.com/users/MDAnalysis/following{/other_user}","gists_url":"https://api.github.com/users/MDAnalysis/gists{/gist_id}","starred_url":"https://api.github.com/users/MDAnalysis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MDAnalysis/subscriptions","organizations_url":"https://api.github.com/users/MDAnalysis/orgs","repos_url":"https://api.github.com/users/MDAnalysis/repos","events_url":"https://api.github.com/users/MDAnalysis/events{/privacy}","received_events_url":"https://api.github.com/users/MDAnalysis/received_events","type":"Organization","site_admin":false},"repo":{"id":106346721,"node_id":"MDEwOlJlcG9zaXRvcnkxMDYzNDY3MjE=","name":"pmda","full_name":"MDAnalysis/pmda","owner":{"login":"MDAnalysis","id":11445951,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNDQ1OTUx","avatar_url":"https://avatars1.githubusercontent.com/u/11445951?v=4","gravatar_id":"","url":"https://api.github.com/users/MDAnalysis","html_url":"https://github.com/MDAnalysis","followers_url":"https://api.github.com/users/MDAnalysis/followers","following_url":"https://api.github.com/users/MDAnalysis/following{/other_user}","gists_url":"https://api.github.com/users/MDAnalysis/gists{/gist_id}","starred_url":"https://api.github.com/users/MDAnalysis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MDAnalysis/subscriptions","organizations_url":"https://api.github.com/users/MDAnalysis/orgs","repos_url":"https://api.github.com/users/MDAnalysis/repos","events_url":"https://api.github.com/users/MDAnalysis/events{/privacy}","received_events_url":"https://api.github.com/users/MDAnalysis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MDAnalysis/pmda","description":"Parallel algorithms for MDAnalysis","fork":false,"url":"https://api.github.com/repos/MDAnalysis/pmda","forks_url":"https://api.github.com/repos/MDAnalysis/pmda/forks","keys_url":"https://api.github.com/repos/MDAnalysis/pmda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MDAnalysis/pmda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MDAnalysis/pmda/teams","hooks_url":"https://api.github.com/repos/MDAnalysis/pmda/hooks","issue_events_url":"https://api.github.com/repos/MDAnalysis/pmda/issues/events{/number}","events_url":"https://api.github.com/repos/MDAnalysis/pmda/events","assignees_url":"https://api.github.com/repos/MDAnalysis/pmda/assignees{/user}","branches_url":"https://api.github.com/repos/MDAnalysis/pmda/branches{/branch}","tags_url":"https://api.github.com/repos/MDAnalysis/pmda/tags","blobs_url":"https://api.github.com/repos/MDAnalysis/pmda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MDAnalysis/pmda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MDAnalysis/pmda/git/refs{/sha}","trees_url":"https://api.github.com/repos/MDAnalysis/pmda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MDAnalysis/pmda/statuses/{sha}","languages_url":"https://api.github.com/repos/MDAnalysis/pmda/languages","stargazers_url":"https://api.github.com/repos/MDAnalysis/pmda/stargazers","contributors_url":"https://api.github.com/repos/MDAnalysis/pmda/contributors","subscribers_url":"https://api.github.com/repos/MDAnalysis/pmda/subscribers","subscription_url":"https://api.github.com/repos/MDAnalysis/pmda/subscription","commits_url":"https://api.github.com/repos/MDAnalysis/pmda/commits{/sha}","git_commits_url":"https://api.github.com/repos/MDAnalysis/pmda/git/commits{/sha}","comments_url":"https://api.github.com/repos/MDAnalysis/pmda/comments{/number}","issue_comment_url":"https://api.github.com/repos/MDAnalysis/pmda/issues/comments{/number}","contents_url":"https://api.github.com/repos/MDAnalysis/pmda/contents/{+path}","compare_url":"https://api.github.com/repos/MDAnalysis/pmda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MDAnalysis/pmda/merges","archive_url":"https://api.github.com/repos/MDAnalysis/pmda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MDAnalysis/pmda/downloads","issues_url":"https://api.github.com/repos/MDAnalysis/pmda/issues{/number}","pulls_url":"https://api.github.com/repos/MDAnalysis/pmda/pulls{/number}","milestones_url":"https://api.github.com/repos/MDAnalysis/pmda/milestones{/number}","notifications_url":"https://api.github.com/repos/MDAnalysis/pmda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MDAnalysis/pmda/labels{/name}","releases_url":"https://api.github.com/repos/MDAnalysis/pmda/releases{/id}","deployments_url":"https://api.github.com/repos/MDAnalysis/pmda/deployments","created_at":"2017-10-09T23:46:26Z","updated_at":"2018-07-11T00:54:37Z","pushed_at":"2018-07-12T17:13:42Z","git_url":"git://github.com/MDAnalysis/pmda.git","ssh_url":"git@github.com:MDAnalysis/pmda.git","clone_url":"https://github.com/MDAnalysis/pmda.git","svn_url":"https://github.com/MDAnalysis/pmda","homepage":"https://www.mdanalysis.org/pmda/","size":570,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":5,"open_issues":13,"watchers":8,"default_branch":"master"}},"base":{"label":"MDAnalysis:master","ref":"master","sha":"723d02163a20991b712910296b9f39595ddc9826","user":{"login":"MDAnalysis","id":11445951,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNDQ1OTUx","avatar_url":"https://avatars1.githubusercontent.com/u/11445951?v=4","gravatar_id":"","url":"https://api.github.com/users/MDAnalysis","html_url":"https://github.com/MDAnalysis","followers_url":"https://api.github.com/users/MDAnalysis/followers","following_url":"https://api.github.com/users/MDAnalysis/following{/other_user}","gists_url":"https://api.github.com/users/MDAnalysis/gists{/gist_id}","starred_url":"https://api.github.com/users/MDAnalysis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MDAnalysis/subscriptions","organizations_url":"https://api.github.com/users/MDAnalysis/orgs","repos_url":"https://api.github.com/users/MDAnalysis/repos","events_url":"https://api.github.com/users/MDAnalysis/events{/privacy}","received_events_url":"https://api.github.com/users/MDAnalysis/received_events","type":"Organization","site_admin":false},"repo":{"id":106346721,"node_id":"MDEwOlJlcG9zaXRvcnkxMDYzNDY3MjE=","name":"pmda","full_name":"MDAnalysis/pmda","owner":{"login":"MDAnalysis","id":11445951,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNDQ1OTUx","avatar_url":"https://avatars1.githubusercontent.com/u/11445951?v=4","gravatar_id":"","url":"https://api.github.com/users/MDAnalysis","html_url":"https://github.com/MDAnalysis","followers_url":"https://api.github.com/users/MDAnalysis/followers","following_url":"https://api.github.com/users/MDAnalysis/following{/other_user}","gists_url":"https://api.github.com/users/MDAnalysis/gists{/gist_id}","starred_url":"https://api.github.com/users/MDAnalysis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MDAnalysis/subscriptions","organizations_url":"https://api.github.com/users/MDAnalysis/orgs","repos_url":"https://api.github.com/users/MDAnalysis/repos","events_url":"https://api.github.com/users/MDAnalysis/events{/privacy}","received_events_url":"https://api.github.com/users/MDAnalysis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MDAnalysis/pmda","description":"Parallel algorithms for MDAnalysis","fork":false,"url":"https://api.github.com/repos/MDAnalysis/pmda","forks_url":"https://api.github.com/repos/MDAnalysis/pmda/forks","keys_url":"https://api.github.com/repos/MDAnalysis/pmda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MDAnalysis/pmda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MDAnalysis/pmda/teams","hooks_url":"https://api.github.com/repos/MDAnalysis/pmda/hooks","issue_events_url":"https://api.github.com/repos/MDAnalysis/pmda/issues/events{/number}","events_url":"https://api.github.com/repos/MDAnalysis/pmda/events","assignees_url":"https://api.github.com/repos/MDAnalysis/pmda/assignees{/user}","branches_url":"https://api.github.com/repos/MDAnalysis/pmda/branches{/branch}","tags_url":"https://api.github.com/repos/MDAnalysis/pmda/tags","blobs_url":"https://api.github.com/repos/MDAnalysis/pmda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MDAnalysis/pmda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MDAnalysis/pmda/git/refs{/sha}","trees_url":"https://api.github.com/repos/MDAnalysis/pmda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MDAnalysis/pmda/statuses/{sha}","languages_url":"https://api.github.com/repos/MDAnalysis/pmda/languages","stargazers_url":"https://api.github.com/repos/MDAnalysis/pmda/stargazers","contributors_url":"https://api.github.com/repos/MDAnalysis/pmda/contributors","subscribers_url":"https://api.github.com/repos/MDAnalysis/pmda/subscribers","subscription_url":"https://api.github.com/repos/MDAnalysis/pmda/subscription","commits_url":"https://api.github.com/repos/MDAnalysis/pmda/commits{/sha}","git_commits_url":"https://api.github.com/repos/MDAnalysis/pmda/git/commits{/sha}","comments_url":"https://api.github.com/repos/MDAnalysis/pmda/comments{/number}","issue_comment_url":"https://api.github.com/repos/MDAnalysis/pmda/issues/comments{/number}","contents_url":"https://api.github.com/repos/MDAnalysis/pmda/contents/{+path}","compare_url":"https://api.github.com/repos/MDAnalysis/pmda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MDAnalysis/pmda/merges","archive_url":"https://api.github.com/repos/MDAnalysis/pmda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MDAnalysis/pmda/downloads","issues_url":"https://api.github.com/repos/MDAnalysis/pmda/issues{/number}","pulls_url":"https://api.github.com/repos/MDAnalysis/pmda/pulls{/number}","milestones_url":"https://api.github.com/repos/MDAnalysis/pmda/milestones{/number}","notifications_url":"https://api.github.com/repos/MDAnalysis/pmda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MDAnalysis/pmda/labels{/name}","releases_url":"https://api.github.com/repos/MDAnalysis/pmda/releases{/id}","deployments_url":"https://api.github.com/repos/MDAnalysis/pmda/deployments","created_at":"2017-10-09T23:46:26Z","updated_at":"2018-07-11T00:54:37Z","pushed_at":"2018-07-12T17:13:42Z","git_url":"git://github.com/MDAnalysis/pmda.git","ssh_url":"git@github.com:MDAnalysis/pmda.git","clone_url":"https://github.com/MDAnalysis/pmda.git","svn_url":"https://github.com/MDAnalysis/pmda","homepage":"https://www.mdanalysis.org/pmda/","size":570,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":5,"open_issues":13,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MDAnalysis/pmda/pulls/52"},"html":{"href":"https://github.com/MDAnalysis/pmda/pull/52"},"issue":{"href":"https://api.github.com/repos/MDAnalysis/pmda/issues/52"},"comments":{"href":"https://api.github.com/repos/MDAnalysis/pmda/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/MDAnalysis/pmda/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/MDAnalysis/pmda/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MDAnalysis/pmda/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/MDAnalysis/pmda/statuses/332290e8d85acf015ac7cd67a555d00bc88896ec"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":23,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"richardjgowers"}}