{"action":"closed","number":21,"pull_request":{"url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/pulls/21","id":51688670,"html_url":"https://github.com/PyCOMPLETE/PyHEADTAIL/pull/21","diff_url":"https://github.com/PyCOMPLETE/PyHEADTAIL/pull/21.diff","patch_url":"https://github.com/PyCOMPLETE/PyHEADTAIL/pull/21.patch","issue_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/issues/21","number":21,"state":"closed","locked":false,"title":"BunchMonitor/SliceMonitor prep for GPU","user":{"login":"Stefannn","id":2893631,"avatar_url":"https://avatars.githubusercontent.com/u/2893631?v=3","gravatar_id":"","url":"https://api.github.com/users/Stefannn","html_url":"https://github.com/Stefannn","followers_url":"https://api.github.com/users/Stefannn/followers","following_url":"https://api.github.com/users/Stefannn/following{/other_user}","gists_url":"https://api.github.com/users/Stefannn/gists{/gist_id}","starred_url":"https://api.github.com/users/Stefannn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stefannn/subscriptions","organizations_url":"https://api.github.com/users/Stefannn/orgs","repos_url":"https://api.github.com/users/Stefannn/repos","events_url":"https://api.github.com/users/Stefannn/events{/privacy}","received_events_url":"https://api.github.com/users/Stefannn/received_events","type":"User","site_admin":false},"body":"This commit slightly changes the implementation of the BunchMonitor\r\nand SliceMonitor such that it is easier to make use of GPUs (not\r\nincluded here). The issue was the np.roll which is not available for\r\ngpuarrays.\r\nSolution: Use np.roll only when writing to file (data is on CPU anyway).\r\n          Minimal changes to the implementation.\r\nNO CHANGES TO THE INTERFACE\r\n\r\nDetails:\r\n- write_to_buffer: do not np.roll array there but only in the write_to_file\r\n  function. Fill the buffer by moving the write location.\r\n- write_to_file: create an extra buffer, copy self.buffer into there and\r\n  try to move it from the gpu. np.roll in this function, the rest stays\r\n  the same.\r\n\r\n- First unit tests for the slicemonitor and bunchmonitor","created_at":"2015-11-24T17:11:48Z","updated_at":"2015-11-25T09:47:42Z","closed_at":"2015-11-25T09:47:42Z","merged_at":"2015-11-25T09:47:42Z","merge_commit_sha":"0e686247e367d64044c2940102a1218fee420fca","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/pulls/21/commits","review_comments_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/pulls/21/comments","review_comment_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/issues/21/comments","statuses_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/statuses/585ec1fd66eefeee0a6ca610d798348a22917d76","head":{"label":"PyCOMPLETE:feature/monitor_ready_for_gpu","ref":"feature/monitor_ready_for_gpu","sha":"585ec1fd66eefeee0a6ca610d798348a22917d76","user":{"login":"PyCOMPLETE","id":11218047,"avatar_url":"https://avatars.githubusercontent.com/u/11218047?v=3","gravatar_id":"","url":"https://api.github.com/users/PyCOMPLETE","html_url":"https://github.com/PyCOMPLETE","followers_url":"https://api.github.com/users/PyCOMPLETE/followers","following_url":"https://api.github.com/users/PyCOMPLETE/following{/other_user}","gists_url":"https://api.github.com/users/PyCOMPLETE/gists{/gist_id}","starred_url":"https://api.github.com/users/PyCOMPLETE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyCOMPLETE/subscriptions","organizations_url":"https://api.github.com/users/PyCOMPLETE/orgs","repos_url":"https://api.github.com/users/PyCOMPLETE/repos","events_url":"https://api.github.com/users/PyCOMPLETE/events{/privacy}","received_events_url":"https://api.github.com/users/PyCOMPLETE/received_events","type":"User","site_admin":false},"repo":{"id":31773791,"name":"PyHEADTAIL","full_name":"PyCOMPLETE/PyHEADTAIL","owner":{"login":"PyCOMPLETE","id":11218047,"avatar_url":"https://avatars.githubusercontent.com/u/11218047?v=3","gravatar_id":"","url":"https://api.github.com/users/PyCOMPLETE","html_url":"https://github.com/PyCOMPLETE","followers_url":"https://api.github.com/users/PyCOMPLETE/followers","following_url":"https://api.github.com/users/PyCOMPLETE/following{/other_user}","gists_url":"https://api.github.com/users/PyCOMPLETE/gists{/gist_id}","starred_url":"https://api.github.com/users/PyCOMPLETE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyCOMPLETE/subscriptions","organizations_url":"https://api.github.com/users/PyCOMPLETE/orgs","repos_url":"https://api.github.com/users/PyCOMPLETE/repos","events_url":"https://api.github.com/users/PyCOMPLETE/events{/privacy}","received_events_url":"https://api.github.com/users/PyCOMPLETE/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PyCOMPLETE/PyHEADTAIL","description":"CERN PyHEADTAIL numerical n-body simulation code for simulating macro-particle beam dynamics with collective effects ","fork":false,"url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL","forks_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/forks","keys_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/teams","hooks_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/hooks","issue_events_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/issues/events{/number}","events_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/events","assignees_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/assignees{/user}","branches_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/branches{/branch}","tags_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/tags","blobs_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/git/refs{/sha}","trees_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/statuses/{sha}","languages_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/languages","stargazers_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/stargazers","contributors_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/contributors","subscribers_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/subscribers","subscription_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/subscription","commits_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/commits{/sha}","git_commits_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/git/commits{/sha}","comments_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/comments{/number}","issue_comment_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/issues/comments{/number}","contents_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/contents/{+path}","compare_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/merges","archive_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/downloads","issues_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/issues{/number}","pulls_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/pulls{/number}","milestones_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/milestones{/number}","notifications_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/labels{/name}","releases_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/releases{/id}","created_at":"2015-03-06T14:49:11Z","updated_at":"2015-09-25T13:45:03Z","pushed_at":"2015-11-25T09:47:42Z","git_url":"git://github.com/PyCOMPLETE/PyHEADTAIL.git","ssh_url":"git@github.com:PyCOMPLETE/PyHEADTAIL.git","clone_url":"https://github.com/PyCOMPLETE/PyHEADTAIL.git","svn_url":"https://github.com/PyCOMPLETE/PyHEADTAIL","homepage":null,"size":25582,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":3,"default_branch":"master"}},"base":{"label":"PyCOMPLETE:develop","ref":"develop","sha":"e6f0276b00918b3617f36872fc6fcf7a9799b1e2","user":{"login":"PyCOMPLETE","id":11218047,"avatar_url":"https://avatars.githubusercontent.com/u/11218047?v=3","gravatar_id":"","url":"https://api.github.com/users/PyCOMPLETE","html_url":"https://github.com/PyCOMPLETE","followers_url":"https://api.github.com/users/PyCOMPLETE/followers","following_url":"https://api.github.com/users/PyCOMPLETE/following{/other_user}","gists_url":"https://api.github.com/users/PyCOMPLETE/gists{/gist_id}","starred_url":"https://api.github.com/users/PyCOMPLETE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyCOMPLETE/subscriptions","organizations_url":"https://api.github.com/users/PyCOMPLETE/orgs","repos_url":"https://api.github.com/users/PyCOMPLETE/repos","events_url":"https://api.github.com/users/PyCOMPLETE/events{/privacy}","received_events_url":"https://api.github.com/users/PyCOMPLETE/received_events","type":"User","site_admin":false},"repo":{"id":31773791,"name":"PyHEADTAIL","full_name":"PyCOMPLETE/PyHEADTAIL","owner":{"login":"PyCOMPLETE","id":11218047,"avatar_url":"https://avatars.githubusercontent.com/u/11218047?v=3","gravatar_id":"","url":"https://api.github.com/users/PyCOMPLETE","html_url":"https://github.com/PyCOMPLETE","followers_url":"https://api.github.com/users/PyCOMPLETE/followers","following_url":"https://api.github.com/users/PyCOMPLETE/following{/other_user}","gists_url":"https://api.github.com/users/PyCOMPLETE/gists{/gist_id}","starred_url":"https://api.github.com/users/PyCOMPLETE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyCOMPLETE/subscriptions","organizations_url":"https://api.github.com/users/PyCOMPLETE/orgs","repos_url":"https://api.github.com/users/PyCOMPLETE/repos","events_url":"https://api.github.com/users/PyCOMPLETE/events{/privacy}","received_events_url":"https://api.github.com/users/PyCOMPLETE/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PyCOMPLETE/PyHEADTAIL","description":"CERN PyHEADTAIL numerical n-body simulation code for simulating macro-particle beam dynamics with collective effects ","fork":false,"url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL","forks_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/forks","keys_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/teams","hooks_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/hooks","issue_events_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/issues/events{/number}","events_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/events","assignees_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/assignees{/user}","branches_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/branches{/branch}","tags_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/tags","blobs_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/git/refs{/sha}","trees_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/statuses/{sha}","languages_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/languages","stargazers_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/stargazers","contributors_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/contributors","subscribers_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/subscribers","subscription_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/subscription","commits_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/commits{/sha}","git_commits_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/git/commits{/sha}","comments_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/comments{/number}","issue_comment_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/issues/comments{/number}","contents_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/contents/{+path}","compare_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/merges","archive_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/downloads","issues_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/issues{/number}","pulls_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/pulls{/number}","milestones_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/milestones{/number}","notifications_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/labels{/name}","releases_url":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/releases{/id}","created_at":"2015-03-06T14:49:11Z","updated_at":"2015-09-25T13:45:03Z","pushed_at":"2015-11-25T09:47:42Z","git_url":"git://github.com/PyCOMPLETE/PyHEADTAIL.git","ssh_url":"git@github.com:PyCOMPLETE/PyHEADTAIL.git","clone_url":"https://github.com/PyCOMPLETE/PyHEADTAIL.git","svn_url":"https://github.com/PyCOMPLETE/PyHEADTAIL","homepage":null,"size":25582,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/pulls/21"},"html":{"href":"https://github.com/PyCOMPLETE/PyHEADTAIL/pull/21"},"issue":{"href":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/issues/21"},"comments":{"href":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/PyCOMPLETE/PyHEADTAIL/statuses/585ec1fd66eefeee0a6ca610d798348a22917d76"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"Stefannn","id":2893631,"avatar_url":"https://avatars.githubusercontent.com/u/2893631?v=3","gravatar_id":"","url":"https://api.github.com/users/Stefannn","html_url":"https://github.com/Stefannn","followers_url":"https://api.github.com/users/Stefannn/followers","following_url":"https://api.github.com/users/Stefannn/following{/other_user}","gists_url":"https://api.github.com/users/Stefannn/gists{/gist_id}","starred_url":"https://api.github.com/users/Stefannn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stefannn/subscriptions","organizations_url":"https://api.github.com/users/Stefannn/orgs","repos_url":"https://api.github.com/users/Stefannn/repos","events_url":"https://api.github.com/users/Stefannn/events{/privacy}","received_events_url":"https://api.github.com/users/Stefannn/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":212,"deletions":31,"changed_files":3}}